Method | HTTP request | Description |
---|---|---|
getBaseline | GET /baselines/{baselineId} | Get the baseline with the specified ID |
getBaselines | GET /baselines | Get all baselines in the project with the specified ID |
getRelationshipsForVersion | GET /baselines/{baselineId}/versioneditems/{itemId}/versionedrelationships | Get all versioned relationships for the item in the baseline |
getVersionedItem | GET /baselines/{baselineId}/versioneditems/{itemId} | Get the baseline item with the specified ID in a baseline with the specified ID |
getVersionedItems | GET /baselines/{baselineId}/versioneditems | Get all baseline items in a baseline with the specified ID |
BaselineDataWrapper getBaseline(baselineId, include)
Get the baseline 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.BaselinesApi;
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");
BaselinesApi apiInstance = new BaselinesApi();
Integer baselineId = 56; // Integer |
List<String> include = Arrays.asList("include_example"); // List<String> | Links to include as full objects in the linked map
try {
BaselineDataWrapper result = apiInstance.getBaseline(baselineId, include);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling BaselinesApi#getBaseline");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
baselineId | Integer | ||
include | List<String> | Links to include as full objects in the linked map | [optional] |
- Content-Type: application/json
- Accept: application/json
BaselineDataListWrapper getBaselines(project, startAt, maxResults, include)
Get all baselines 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.BaselinesApi;
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");
BaselinesApi apiInstance = new BaselinesApi();
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 {
BaselineDataListWrapper result = apiInstance.getBaselines(project, startAt, maxResults, include);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling BaselinesApi#getBaselines");
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
VersionedRelationshipDataListWrapper getRelationshipsForVersion(itemId, baselineId, startAt, maxResults, include)
Get all versioned relationships for the item in the baseline
// 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.BaselinesApi;
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");
BaselinesApi apiInstance = new BaselinesApi();
Integer itemId = 56; // Integer |
Integer baselineId = 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 {
VersionedRelationshipDataListWrapper result = apiInstance.getRelationshipsForVersion(itemId, baselineId, startAt, maxResults, include);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling BaselinesApi#getRelationshipsForVersion");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
itemId | Integer | ||
baselineId | 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] |
VersionedRelationshipDataListWrapper
- Content-Type: application/json
- Accept: application/json
BaselineItemDataWrapper getVersionedItem(itemId, baselineId, include)
Get the baseline item with the specified ID in a baseline 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.BaselinesApi;
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");
BaselinesApi apiInstance = new BaselinesApi();
Integer itemId = 56; // Integer |
Integer baselineId = 56; // Integer |
List<String> include = Arrays.asList("include_example"); // List<String> | Links to include as full objects in the linked map
try {
BaselineItemDataWrapper result = apiInstance.getVersionedItem(itemId, baselineId, include);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling BaselinesApi#getVersionedItem");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
itemId | Integer | ||
baselineId | Integer | ||
include | List<String> | Links to include as full objects in the linked map | [optional] |
- Content-Type: application/json
- Accept: application/json
BaselineItemDataListWrapper getVersionedItems(baselineId, startAt, maxResults, include)
Get all baseline items in a baseline 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.BaselinesApi;
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");
BaselinesApi apiInstance = new BaselinesApi();
Integer baselineId = 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 {
BaselineItemDataListWrapper result = apiInstance.getVersionedItems(baselineId, startAt, maxResults, include);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling BaselinesApi#getVersionedItems");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
baselineId | 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