Skip to content

Commit

Permalink
fix: rename new SSC_URL PROJECT_VERSION_ACTION-> `PROJECT_VERSIONS_…
Browse files Browse the repository at this point in the history
…ACTION`
  • Loading branch information
gendry-gh committed Nov 17, 2023
1 parent 3a0fbbd commit 55178be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public static String PLUGIN(String pluginId) {
}
public static final String PORTLETS_ISSUE_AGING = ApiBase + "/portlets/issueaging";
public static final String PROJECT_VERSIONS = ApiBase + "/projectVersions";
public static String PROJECT_VERSION_ACTION(String projectVersionId) {
public static String PROJECT_VERSIONS_ACTION(String projectVersionId) {
return String.format(ApiBase + "/projectVersions/%s/action", projectVersionId);
}
public static final String PROJECT_VERSIONS_ACTION_AUDIT_BY_AUDIT_ASSISTANT = ApiBase + "/projectVersions/action/auditByAuditAssistant";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
*******************************************************************************/
package com.fortify.cli.ssc.appversion.cli.cmd;

import java.util.HashMap;

import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;
Expand Down Expand Up @@ -92,7 +90,7 @@ private static final JsonNode copyState(UnirestInstance unirest, SSCAppVersionDe
body .put("type", "copy_current_state")
.set("values", copyStateOptions);

unirest .post(SSCUrls.PROJECT_VERSION_ACTION(toAppVersionDescriptor.getVersionId()))
unirest .post(SSCUrls.PROJECT_VERSIONS_ACTION(toAppVersionDescriptor.getVersionId()))
.body(body)
.asObject(JsonNode.class).getBody();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
*******************************************************************************/
package com.fortify.cli.ssc.appversion.helper;

import java.util.HashMap;

import com.fasterxml.jackson.databind.node.ObjectNode;
import com.fortify.cli.common.json.JsonHelper;
import com.fortify.cli.ssc._common.rest.SSCUrls;
Expand Down Expand Up @@ -60,7 +58,7 @@ public final HttpRequest<?> buildCopyStateRequest(String projectVersionId) {
.set("values", copyStateOptions);

return unirest
.post(SSCUrls.PROJECT_VERSION_ACTION(projectVersionId))
.post(SSCUrls.PROJECT_VERSIONS_ACTION(projectVersionId))
.body(body);
}

Expand Down

0 comments on commit 55178be

Please sign in to comment.