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
7960f1d4
Unverified
Commit
7960f1d4
authored
May 01, 2020
by
Haroon Gul
Committed by
GitHub
May 01, 2020
Browse files
Update README.md to include TagsApi example (#564)
parent
064b0336
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
7960f1d4
...
@@ -305,6 +305,7 @@ The following is a list of the available sub APIs along with a sample use of eac
...
@@ -305,6 +305,7 @@ The following is a list of the available sub APIs along with a sample use of eac
[SessionApi](#sessionapi)<br/>
[SessionApi](#sessionapi)<br/>
[SnippetsApi](#snippetsapi)<br/>
[SnippetsApi](#snippetsapi)<br/>
[SystemHooksApi](#systemhooksapi)<br/>
[SystemHooksApi](#systemhooksapi)<br/>
[TagsApi](#tagsapi)<br/>
[TodosApi](#todosapi)<br/>
[TodosApi](#todosapi)<br/>
[UserApi](#userapi)<br/>
[UserApi](#userapi)<br/>
[WikisApi](#wikisapi)
[WikisApi](#wikisapi)
...
@@ -571,6 +572,12 @@ List<Snippet> snippets = gitLabApi.getSnippetsApi().getSnippets();
...
@@ -571,6 +572,12 @@ List<Snippet> snippets = gitLabApi.getSnippetsApi().getSnippets();
List
<
SystemHook
>
hooks
=
gitLabApi
.
getSystemHooksApi
().
getSystemHooks
();
List
<
SystemHook
>
hooks
=
gitLabApi
.
getSystemHooksApi
().
getSystemHooks
();
```
```
#### TagsApi
```
java
// Get a list of tags for the specified project ID
List
<
Tag
>
tags
=
gitLabApi
.
getTagsApi
().
getTags
(
projectId
);
```
#### TodosApi
#### TodosApi
```
java
```
java
// Get a list of all pending todos for the current user
// Get a list of all pending todos for the current user
...
...
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