Commit 6db9b9f9 authored by Greg Messner's avatar Greg Messner
Browse files

Added info on ApplicationsApi (#338).

parent 7107e9db
...@@ -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
------------------ ------------------
&nbsp;&nbsp;[AoolicationsApi](#applicationsapi)<br/>
&nbsp;&nbsp;[AwardEmojiApi](#awardemojiapi)<br/> &nbsp;&nbsp;[AwardEmojiApi](#awardemojiapi)<br/>
&nbsp;&nbsp;[BoardsApi](#boardsapi)<br/> &nbsp;&nbsp;[BoardsApi](#boardsapi)<br/>
&nbsp;&nbsp;[CommitsApi](#commitsapi)<br/> &nbsp;&nbsp;[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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment