Method | HTTP request | Description |
---|---|---|
addRelease | POST /releases | Create a new release |
getRelease | GET /releases/{releaseId} | Get the release with the specified ID |
getReleases | GET /releases | Get all releases in the project with the specified ID |
putRelease | PUT /releases/{releaseId} | Update the release with the specified ID |
CreatedResponse addRelease(body)
Create a new release
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.ReleasesApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
ReleasesApi apiInstance = new ReleasesApi();
RequestRelease body = new RequestRelease(); // RequestRelease |
try {
CreatedResponse result = apiInstance.addRelease(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ReleasesApi#addRelease");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | RequestRelease |
- Content-Type: application/json
- Accept: application/json
ReleaseDataWrapper getRelease(releaseId, include)
Get the release with the specified ID
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.ReleasesApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
ReleasesApi apiInstance = new ReleasesApi();
Integer releaseId = 56; // Integer |
List<String> include = Arrays.asList("include_example"); // List<String> | Links to include as full objects in the linked map
try {
ReleaseDataWrapper result = apiInstance.getRelease(releaseId, include);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ReleasesApi#getRelease");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
releaseId | Integer | ||
include | List<String> | Links to include as full objects in the linked map | [optional] |
- Content-Type: application/json
- Accept: application/json
ReleaseDataListWrapper getReleases(project, startAt, maxResults, include)
Get all releases in the project with the specified ID
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.ReleasesApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
ReleasesApi apiInstance = new ReleasesApi();
Integer project = 56; // Integer |
Integer startAt = 56; // Integer |
Integer maxResults = 56; // Integer | If not set, this defaults to 20. This cannot be larger than 50
List<String> include = Arrays.asList("include_example"); // List<String> | Links to include as full objects in the linked map
try {
ReleaseDataListWrapper result = apiInstance.getReleases(project, startAt, maxResults, include);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ReleasesApi#getReleases");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
project | Integer | ||
startAt | Integer | [optional] | |
maxResults | Integer | If not set, this defaults to 20. This cannot be larger than 50 | [optional] |
include | List<String> | Links to include as full objects in the linked map | [optional] |
- Content-Type: application/json
- Accept: application/json
AbstractRestResponse putRelease(body, releaseId)
Update the release with the specified ID
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.ReleasesApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
ReleasesApi apiInstance = new ReleasesApi();
RequestRelease body = new RequestRelease(); // RequestRelease |
Integer releaseId = 56; // Integer |
try {
AbstractRestResponse result = apiInstance.putRelease(body, releaseId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ReleasesApi#putRelease");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | RequestRelease | ||
releaseId | Integer |
- Content-Type: application/json
- Accept: application/json