Skip to content

Latest commit

 

History

History
232 lines (172 loc) · 8.46 KB

BugTrackerOfProjectVersionControllerApi.md

File metadata and controls

232 lines (172 loc) · 8.46 KB

BugTrackerOfProjectVersionControllerApi

All URIs are relative to https://SSC:8080/ssc/api/v1

Method HTTP request Description
doActionBugTrackerOfProjectVersion POST /projectVersions/{parentId}/bugtracker/action doAction
listBugTrackerOfProjectVersion GET /projectVersions/{parentId}/bugtracker list
testBugTrackerOfProjectVersion POST /projectVersions/{parentId}/bugtracker/action/test test
updateCollectionBugTrackerOfProjectVersion PUT /projectVersions/{parentId}/bugtracker updateCollection

doActionBugTrackerOfProjectVersion

ApiResultApiActionResponse doActionBugTrackerOfProjectVersion(parentId, collectionAction)

doAction

Example

// 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.BugTrackerOfProjectVersionControllerApi;

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");

BugTrackerOfProjectVersionControllerApi apiInstance = new BugTrackerOfProjectVersionControllerApi();
Long parentId = 789L; // Long | parentId
ApiCollectionActionstring collectionAction = new ApiCollectionActionstring(); // ApiCollectionActionstring | collectionAction
try {
    ApiResultApiActionResponse result = apiInstance.doActionBugTrackerOfProjectVersion(parentId, collectionAction);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling BugTrackerOfProjectVersionControllerApi#doActionBugTrackerOfProjectVersion");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
parentId Long parentId
collectionAction ApiCollectionActionstring collectionAction

Return type

ApiResultApiActionResponse

Authorization

FortifyToken

HTTP request headers

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

listBugTrackerOfProjectVersion

ApiResultListProjectVersionBugTracker listBugTrackerOfProjectVersion(parentId, fields)

list

Example

// 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.BugTrackerOfProjectVersionControllerApi;

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");

BugTrackerOfProjectVersionControllerApi apiInstance = new BugTrackerOfProjectVersionControllerApi();
Long parentId = 789L; // Long | parentId
String fields = "fields_example"; // String | Output fields
try {
    ApiResultListProjectVersionBugTracker result = apiInstance.listBugTrackerOfProjectVersion(parentId, fields);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling BugTrackerOfProjectVersionControllerApi#listBugTrackerOfProjectVersion");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
parentId Long parentId
fields String Output fields [optional]

Return type

ApiResultListProjectVersionBugTracker

Authorization

FortifyToken

HTTP request headers

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

testBugTrackerOfProjectVersion

ApiResultVoid testBugTrackerOfProjectVersion(parentId, resource)

test

Example

// 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.BugTrackerOfProjectVersionControllerApi;

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");

BugTrackerOfProjectVersionControllerApi apiInstance = new BugTrackerOfProjectVersionControllerApi();
Long parentId = 789L; // Long | parentId
BugTrackerRequest resource = new BugTrackerRequest(); // BugTrackerRequest | resource
try {
    ApiResultVoid result = apiInstance.testBugTrackerOfProjectVersion(parentId, resource);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling BugTrackerOfProjectVersionControllerApi#testBugTrackerOfProjectVersion");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
parentId Long parentId
resource BugTrackerRequest resource

Return type

ApiResultVoid

Authorization

FortifyToken

HTTP request headers

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

updateCollectionBugTrackerOfProjectVersion

ApiResultListProjectVersionBugTracker updateCollectionBugTrackerOfProjectVersion(parentId, data)

updateCollection

Example

// 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.BugTrackerOfProjectVersionControllerApi;

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");

BugTrackerOfProjectVersionControllerApi apiInstance = new BugTrackerOfProjectVersionControllerApi();
Long parentId = 789L; // Long | parentId
List<ProjectVersionBugTracker> data = Arrays.asList(new ProjectVersionBugTracker()); // List<ProjectVersionBugTracker> | data
try {
    ApiResultListProjectVersionBugTracker result = apiInstance.updateCollectionBugTrackerOfProjectVersion(parentId, data);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling BugTrackerOfProjectVersionControllerApi#updateCollectionBugTrackerOfProjectVersion");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
parentId Long parentId
data List<ProjectVersionBugTracker> data

Return type

ApiResultListProjectVersionBugTracker

Authorization

FortifyToken

HTTP request headers

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