forked from gitlab4j/gitlab4j-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMetadataApi.java
31 lines (26 loc) · 850 Bytes
/
MetadataApi.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package org.gitlab4j.api;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.Status;
import org.gitlab4j.api.models.Metadata;
/**
* This class implements the client side API for the Gitlab metadata call.
*
* @see <a href="https://https://docs.gitlab.com/ee/api/metadata.html">Metadata API at Gitlab</a>
*/
public class MetadataApi extends AbstractApi {
public MetadataApi(GitLabApi gitLabApi) {
super(gitLabApi);
}
/**
* Get Gitlab metadata
*
* <pre><code>Gitlab Endpoint: GET /metadata</code></pre>
*
* @return Gitlab metadata
* @throws GitLabApiException if any exception occurs
*/
public Metadata getMetadata() throws GitLabApiException {
Response response = get(Status.OK, null, "metadata");
return (response.readEntity(Metadata.class));
}
}