Skip to content

Latest commit

 

History

History
61 lines (44 loc) · 1.81 KB

ServerInfoApi.md

File metadata and controls

61 lines (44 loc) · 1.81 KB

ServerInfoApi

All URIs are relative to https://your-domain.atlassian.com

Method HTTP request Description
getServerInfo GET /rest/api/3/serverInfo Get Jira instance info

getServerInfo

ServerInformation getServerInfo()

Get Jira instance info

Returns information about the Jira instance. This operation can be accessed anonymously. Permissions required: None.

Example

// 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();
}

Parameters

This endpoint does not need any parameter.

Return type

ServerInformation

Authorization

OAuth2basicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json