Skip to content

Commit

Permalink
Changed API URL #3789
Browse files Browse the repository at this point in the history
  • Loading branch information
lorriborri committed Jan 16, 2025
1 parent e0ef3ac commit ab008d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,5 +128,5 @@ private AdministrationAPIConstants() {
/* +-----------------------------------------------------------------------+ */
/* +............................... Jobs ..................................+ */
/* +-----------------------------------------------------------------------+ */
public static final String API_USER_CANCEL_JOB = API_MANAGEMENT + "jobs/cancel/{jobUUID}";
public static final String API_USER_CANCEL_JOB = API_MANAGEMENT + "jobs/{jobUUID}/cancel";
}
2 changes: 1 addition & 1 deletion sechub-openapi-java/src/main/resources/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4175,7 +4175,7 @@ paths:
tags:
- Configuration

/api/management/jobs/cancel/{jobUUID}:
/api/management/jobs/{jobUUID}/cancel:
post:
description: User cancels a job by its Job UUID
operationId: userCancelsJob
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ private static ParameterBuilder params() {
}

public String buildUserCancelJob(String jobUUID) {
return buildUrl(API_MANAGEMENT, "jobs/cancel", jobUUID);
return buildUrl(API_MANAGEMENT, "jobs/", jobUUID, "/cancel");
}

private static class ParameterBuilder {
Expand Down

0 comments on commit ab008d3

Please sign in to comment.