All URIs are relative to https://your-domain.atlassian.com
Method | HTTP request | Description |
---|---|---|
getServerInfo | GET /rest/api/3/serverInfo | Get Jira instance info |
ServerInformation getServerInfo()
Get Jira instance info
Returns information about the Jira instance. This operation can be accessed anonymously. Permissions required: None.
// Import classes:
//import com.xminds.jira.rest.client.ApiClient;
//import com.xminds.jira.rest.client.ApiException;
//import com.xminds.jira.rest.client.Configuration;
//import com.xminds.jira.rest.client.auth.*;
//import com.xminds.jira.rest.client.api.ServerInfoApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
ServerInfoApi apiInstance = new ServerInfoApi();
try {
ServerInformation result = apiInstance.getServerInfo();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ServerInfoApi#getServerInfo");
e.printStackTrace();
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json