All URIs are relative to https://SSC:8080/ssc/api/v1
Method | HTTP request | Description |
---|---|---|
createCustomTagOfProjectVersion | POST /projectVersions/{parentId}/customTags | create |
listCustomTagOfProjectVersion | GET /projectVersions/{parentId}/customTags | list |
updateCollectionCustomTagOfProjectVersion | PUT /projectVersions/{parentId}/customTags | updateCollection |
updateCustomTagOfProjectVersion | PUT /projectVersions/{parentId}/customTags/{id} | update |
ApiResultCustomTag createCustomTagOfProjectVersion(parentId, resource)
create
// Import classes:
//import com.fortify.ssc.restclient.ApiClient;
//import com.fortify.ssc.restclient.ApiException;
//import com.fortify.ssc.restclient.Configuration;
//import com.fortify.ssc.restclient.auth.*;
//import com.fortify.ssc.restclient.api.CustomTagOfProjectVersionControllerApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: FortifyToken
ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken");
FortifyToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//FortifyToken.setApiKeyPrefix("Token");
CustomTagOfProjectVersionControllerApi apiInstance = new CustomTagOfProjectVersionControllerApi();
Long parentId = 789L; // Long | parentId
CustomTag resource = new CustomTag(); // CustomTag | resource
try {
ApiResultCustomTag result = apiInstance.createCustomTagOfProjectVersion(parentId, resource);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CustomTagOfProjectVersionControllerApi#createCustomTagOfProjectVersion");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
parentId | Long | parentId | |
resource | CustomTag | resource |
- Content-Type: application/json
- Accept: application/json
ApiResultListCustomTag listCustomTagOfProjectVersion(parentId, fields, start, limit, q, orderby, includeall)
list
// Import classes:
//import com.fortify.ssc.restclient.ApiClient;
//import com.fortify.ssc.restclient.ApiException;
//import com.fortify.ssc.restclient.Configuration;
//import com.fortify.ssc.restclient.auth.*;
//import com.fortify.ssc.restclient.api.CustomTagOfProjectVersionControllerApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: FortifyToken
ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken");
FortifyToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//FortifyToken.setApiKeyPrefix("Token");
CustomTagOfProjectVersionControllerApi apiInstance = new CustomTagOfProjectVersionControllerApi();
Long parentId = 789L; // Long | parentId
String fields = "fields_example"; // String | Output fields
Integer start = 0; // Integer | A start offset in object listing
Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied
String q = "q_example"; // String | A search query
String orderby = "orderby_example"; // String | Fields to order by
Boolean includeall = false; // Boolean | includeall
try {
ApiResultListCustomTag result = apiInstance.listCustomTagOfProjectVersion(parentId, fields, start, limit, q, orderby, includeall);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CustomTagOfProjectVersionControllerApi#listCustomTagOfProjectVersion");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
parentId | Long | parentId | |
fields | String | Output fields | [optional] |
start | Integer | A start offset in object listing | [optional] [default to 0] |
limit | Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] |
q | String | A search query | [optional] |
orderby | String | Fields to order by | [optional] |
includeall | Boolean | includeall | [optional] [default to false] |
- Content-Type: application/json
- Accept: application/json
ApiResultListCustomTag updateCollectionCustomTagOfProjectVersion(parentId, data)
updateCollection
// Import classes:
//import com.fortify.ssc.restclient.ApiClient;
//import com.fortify.ssc.restclient.ApiException;
//import com.fortify.ssc.restclient.Configuration;
//import com.fortify.ssc.restclient.auth.*;
//import com.fortify.ssc.restclient.api.CustomTagOfProjectVersionControllerApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: FortifyToken
ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken");
FortifyToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//FortifyToken.setApiKeyPrefix("Token");
CustomTagOfProjectVersionControllerApi apiInstance = new CustomTagOfProjectVersionControllerApi();
Long parentId = 789L; // Long | parentId
List<CustomTag> data = Arrays.asList(new CustomTag()); // List<CustomTag> | data
try {
ApiResultListCustomTag result = apiInstance.updateCollectionCustomTagOfProjectVersion(parentId, data);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CustomTagOfProjectVersionControllerApi#updateCollectionCustomTagOfProjectVersion");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
parentId | Long | parentId | |
data | List<CustomTag> | data |
- Content-Type: application/json
- Accept: application/json
ApiResultCustomTag updateCustomTagOfProjectVersion(parentId, id, data)
update
// Import classes:
//import com.fortify.ssc.restclient.ApiClient;
//import com.fortify.ssc.restclient.ApiException;
//import com.fortify.ssc.restclient.Configuration;
//import com.fortify.ssc.restclient.auth.*;
//import com.fortify.ssc.restclient.api.CustomTagOfProjectVersionControllerApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: FortifyToken
ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken");
FortifyToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//FortifyToken.setApiKeyPrefix("Token");
CustomTagOfProjectVersionControllerApi apiInstance = new CustomTagOfProjectVersionControllerApi();
Long parentId = 789L; // Long | parentId
Long id = 789L; // Long | id
CustomTag data = new CustomTag(); // CustomTag | data
try {
ApiResultCustomTag result = apiInstance.updateCustomTagOfProjectVersion(parentId, id, data);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CustomTagOfProjectVersionControllerApi#updateCustomTagOfProjectVersion");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
parentId | Long | parentId | |
id | Long | id | |
data | CustomTag | data |
- Content-Type: application/json
- Accept: application/json