Skip to content

Commit

Permalink
OP-21589 : Added url mapping for the integration API
Browse files Browse the repository at this point in the history
  • Loading branch information
sriharshakancharla committed Jan 11, 2024
1 parent 1a2578a commit 103852e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,23 @@ class OpsmxSsdController {
return opsMxSsdService.updateSsdServiceResponse(version, type, stage, policy, policyId, id, scope, appId, vulnAlert, integratorType, name, data)
}

@ApiOperation(value = "Update endpoint in ssd rest service")
@RequestMapping(value = "/{version}/{type}/{source}", method = RequestMethod.PUT)
Object updateSsdService1(@PathVariable("version") String version,
@PathVariable("type") String type,
@PathVariable("source") String source,
@RequestParam(value = "integratorType", required = false) String integratorType,
@RequestBody(required = false) Object data) {
return opsMxSsdService.updateSsdServiceResponse1(version, type, source, integratorType, data)
}

@ApiOperation(value = "Update cluster details in ssd rest service")
@RequestMapping(value = "/{version}/cluster/{id}", method = RequestMethod.PUT)
Object updateClusterInSsd(@PathVariable("version") String version,
@PathVariable("id") String id,
@RequestParam(value = "name", required = false) String name,
@RequestParam(value = "account", required = false) String account,
@RequestParam(value = "integratorType", required = false) String integratorType,
@RequestParam MultipartFile file) {
return updateCluster(file, name, account, version, id)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,13 @@ interface OpsmxSsdService {
@Query("name") String name,
@Body Object data)

@PUT("/ssdservice/{version}/{type}/{source}")
Object updateSsdServiceResponse1(@Path('version') String version,
@Path('type') String type,
@Query("source") String source,
@Query("integratorType") String integratorType,
@Body Object data)

@GET("/ssdservice/{version}/{type}/{source}/download/json")
Response downloadJsonFile(@Path('version') String version,
@Path('type') String type,
Expand Down

0 comments on commit 103852e

Please sign in to comment.