Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
5e5e8b34
Commit
5e5e8b34
authored
Dec 04, 2017
by
Greg Messner
Browse files
Added comments about login not being supported in version 10.2.0+
parent
b6e06006
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/GitLabApi.java
View file @
5e5e8b34
...
@@ -52,8 +52,10 @@ public class GitLabApi {
...
@@ -52,8 +52,10 @@ public class GitLabApi {
/**
/**
* Logs into GitLab using provided {@code username} and {@code password}, and creates a new {@code GitLabApi} instance
* <p>Logs into GitLab using provided {@code username} and {@code password}, and creates a new {@code GitLabApi} instance
* using returned private token and the specified GitLab API version.
* using returned private token and the specified GitLab API version.</p>
*
* NOTE: This functionality is not available on GitLab servers 10.2 and above.
*
*
* @param apiVersion the ApiVersion specifying which version of the API to use
* @param apiVersion the ApiVersion specifying which version of the API to use
* @param url GitLab URL
* @param url GitLab URL
...
@@ -67,8 +69,10 @@ public class GitLabApi {
...
@@ -67,8 +69,10 @@ public class GitLabApi {
}
}
/**
/**
* Logs into GitLab using provided {@code username} and {@code password}, and creates a new {@code GitLabApi} instance
* <p>Logs into GitLab using provided {@code username} and {@code password}, and creates a new {@code GitLabApi} instance
* using returned private token using GitLab API version 4.
* using returned private token using GitLab API version 4.</p>
*
* NOTE: This functionality is not available on GitLab servers 10.2 and above.
*
*
* @param url GitLab URL
* @param url GitLab URL
* @param username user name for which private token should be obtained
* @param username user name for which private token should be obtained
...
@@ -81,8 +85,10 @@ public class GitLabApi {
...
@@ -81,8 +85,10 @@ public class GitLabApi {
}
}
/**
/**
* Logs into GitLab using provided {@code username} and {@code password}, and creates a new {@code GitLabApi} instance
* <p>Logs into GitLab using provided {@code username} and {@code password}, and creates a new {@code GitLabApi} instance
* using returned private token and the specified GitLab API version.
* using returned private token and the specified GitLab API version.</p>
*
* NOTE: This functionality is not available on GitLab servers 10.2 and above.
*
*
* @param apiVersion the ApiVersion specifying which version of the API to use
* @param apiVersion the ApiVersion specifying which version of the API to use
* @param url GitLab URL
* @param url GitLab URL
...
@@ -111,8 +117,10 @@ public class GitLabApi {
...
@@ -111,8 +117,10 @@ public class GitLabApi {
}
}
/**
/**
* Logs into GitLab using provided {@code username} and {@code password}, and creates a new {@code GitLabApi} instance
* <p>Logs into GitLab using provided {@code username} and {@code password}, and creates a new {@code GitLabApi} instance
* using returned private token using GitLab API version 4.
* using returned private token using GitLab API version 4.</p>
*
* NOTE: This functionality is not available on GitLab servers 10.2 and above.
*
*
* @param url GitLab URL
* @param url GitLab URL
* @param username user name for which private token should be obtained
* @param username user name for which private token should be obtained
...
@@ -126,8 +134,10 @@ public class GitLabApi {
...
@@ -126,8 +134,10 @@ public class GitLabApi {
}
}
/**
/**
* Logs into GitLab using provided {@code username} and {@code password}, and creates a new {@code GitLabApi} instance
* <p>Logs into GitLab using provided {@code username} and {@code password}, and creates a new {@code GitLabApi} instance
* using returned private token and specified GitLab API version.
* using returned private token and specified GitLab API version.</p>
*
* NOTE: This functionality is not available on GitLab servers 10.2 and above.
*
*
* @param url GitLab URL
* @param url GitLab URL
* @param username user name for which private token should be obtained
* @param username user name for which private token should be obtained
...
...
src/main/java/org/gitlab4j/api/SessionApi.java
View file @
5e5e8b34
...
@@ -15,7 +15,7 @@ public class SessionApi extends AbstractApi {
...
@@ -15,7 +15,7 @@ public class SessionApi extends AbstractApi {
}
}
/**
/**
* Login to get private token.
* Login to get private token.
This functionality is not available on GitLab servers 10.2 and above.
*
*
* POST /session
* POST /session
*
*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment