Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
40ba792e
Commit
40ba792e
authored
11 years ago
by
Greg Messner
Browse files
Options
Download
Email Patches
Plain Diff
Added SessionApi info.
parent
413f1c2c
main
5.0.x
5.0.x.jdk17
6.x
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+7
-0
README.md
with
7 additions
and
0 deletions
+7
-0
README.md
+
7
-
0
View file @
40ba792e
...
...
@@ -22,6 +22,7 @@ GroupApi
MergeRequestApi
ProjectApi
RepositoryApi
SessionApi
UserApi
```
...
...
@@ -55,6 +56,12 @@ RepositoryApi:
List
<
Branch
>
branches
=
gitLabApi
.
getRepositoryApi
().
getBranches
();
```
SessionApi:
```
java
// Log in to the GitLab server and get the session info
getLabApi
.
getSessionApi
().
login
(
"your-username"
,
"your-email"
,
"your-password"
);
```
UserApi:
```
java
// Get the User info for user_id 1
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets