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
6db9b9f9
Commit
6db9b9f9
authored
May 04, 2019
by
Greg Messner
Browse files
Added info on ApplicationsApi (#338).
parent
7107e9db
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
6db9b9f9
...
@@ -11,7 +11,7 @@ To utilize GitLab4J™ API in your Java project, simply add the following de
...
@@ -11,7 +11,7 @@ To utilize GitLab4J™ API in your Java project, simply add the following de
```
java
```
java
dependencies
{
dependencies
{
...
...
compile
group:
'
org
.
gitlab4j
'
,
name:
'
gitlab4j
-
api
'
,
version:
'
4.10
.
9
'
compile
group:
'
org
.
gitlab4j
'
,
name:
'
gitlab4j
-
api
'
,
version:
'
4.10
.
10
'
}
}
```
```
...
@@ -22,7 +22,7 @@ dependencies {
...
@@ -22,7 +22,7 @@ dependencies {
<dependency>
<dependency>
<groupId>
org.gitlab4j
</groupId>
<groupId>
org.gitlab4j
</groupId>
<artifactId>
gitlab4j-api
</artifactId>
<artifactId>
gitlab4j-api
</artifactId>
<version>
4.10.
9
</version>
<version>
4.10.
10
</version>
</dependency>
</dependency>
```
```
...
@@ -218,6 +218,7 @@ The following is a list of the available sub APIs along with a sample use of eac
...
@@ -218,6 +218,7 @@ The following is a list of the available sub APIs along with a sample use of eac
### Available Sub APIs
### Available Sub APIs
------------------
------------------
[AoolicationsApi](#applicationsapi)<br/>
[AwardEmojiApi](#awardemojiapi)<br/>
[AwardEmojiApi](#awardemojiapi)<br/>
[BoardsApi](#boardsapi)<br/>
[BoardsApi](#boardsapi)<br/>
[CommitsApi](#commitsapi)<br/>
[CommitsApi](#commitsapi)<br/>
...
@@ -253,6 +254,13 @@ The following is a list of the available sub APIs along with a sample use of eac
...
@@ -253,6 +254,13 @@ The following is a list of the available sub APIs along with a sample use of eac
### Sub API Examples
### Sub API Examples
----------------
----------------
#### ApplicationsApi
```
java
// Add an OAUTH Application to GitLab
ApplicationScope[] scopes = {ApplicationScope.SUDO, ApplicationScope.PROFILE};
gitLabApi.getApplicationsApi().createApplication("My OAUTH Application", "https//example.com/myapp/callback", scopes);
```
#### AwardEmojiApi
#### AwardEmojiApi
```
java
```
java
// Get a list of AwardEmoji belonging to the specified issue (group ID = 1, issues IID = 1)
// Get a list of AwardEmoji belonging to the specified issue (group ID = 1, issues IID = 1)
...
...
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