Skip to content

Commit

Permalink
Added new Param's to the URL (#415)
Browse files Browse the repository at this point in the history
* Added new Param's to the URL

* url

* removed params

* Made Indentation
  • Loading branch information
vivek-opsmx authored Sep 6, 2023
1 parent d45d9b6 commit 0b31772
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,13 @@ class OpsmxSsdController {
@RequestParam(value = "alertName", required = false) String alertName,
@RequestParam(value = "riskStatus", required = false) String riskStatus,
@RequestParam(value = "id", required = false) String id,
@RequestParam(value = "Vulnerability", required = false) String Vulnerability,
@RequestParam(value = "Component", required = false) String Component,
@RequestParam(value = "ComponentVersion", required = false) String ComponentVersion,
@RequestParam(value = "Image", required = false) String Image,
@RequestParam(value = "ImageVersion", required = false) String ImageVersion,
@RequestParam(value = "scope", required = false) String scope) {
return opsMxSsdService.getSddResponse2(version, type, source, account, appId, image, imageTag, stage, deployedAt, appName, pageNo, pageLimit, sortBy, sortOrder, search, noOfDays, alertName, riskStatus, id,scope)
return opsMxSsdService.getSddResponse2(version, type, source, account, appId, image, imageTag, stage, deployedAt, appName, pageNo, pageLimit, sortBy, sortOrder, search, noOfDays, alertName, riskStatus, id, Vulnerability, Component, ComponentVersion, Image, ImageVersion, scope)
}

@ApiOperation(value = "Endpoint for ssd services")
Expand Down Expand Up @@ -169,8 +174,11 @@ class OpsmxSsdController {
@RequestParam(value = "fromAccount", required = false) String fromAccount,
@RequestParam(value = "toAccount", required = false) String toAccount,
@RequestParam(value = "kind", required = false) String kind,
@RequestParam(value = "active", required = false) String active) {
return opsMxSsdService.getSddResponse4(version, type, source, source1, source2, account, appId, image, imageTag, stage, deployedAt, appName, pageNo, pageLimit, sortBy, sortOrder, search, noOfDays, id, fromImage, toImage, fromImageTag, toImageTag, fromAccount, toAccount,kind,active)
@RequestParam(value = "active", required = false) String active,
@RequestParam(value = "Vulnerability", required = false) String Vulnerability,
@RequestParam(value = "Component", required = false) String Component,
@RequestParam(value = "ComponentVersion", required = false) String ComponentVersion) {
return opsMxSsdService.getSddResponse4(version, type, source, source1, source2, account, appId, image, imageTag, stage, deployedAt, appName, pageNo, pageLimit, sortBy, sortOrder, search, noOfDays, id, fromImage, toImage, fromImageTag, toImageTag, fromAccount, toAccount, kind, active, Vulnerability, Component, ComponentVersion)
}

@ApiOperation(value = "Endpoint for ssd services")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ interface OpsmxSsdService {
@Query("alertName") String alertName,
@Query("riskStatus") String riskStatus,
@Query("id") String id,
@Query("Vulnerability") String Vulnerability,
@Query("Component") String Component,
@Query("ComponentVersion") String ComponentVersion,
@Query("Image") String Image,
@Query("ImageVersion") String ImageVersion,
@Query("scope") String scope)

@GET("/ssdservice/{version}/{type}/{source}/{source1}")
Expand Down Expand Up @@ -115,7 +120,10 @@ interface OpsmxSsdService {
@Query("fromAccount") String fromAccount,
@Query("toAccount") String toAccount,
@Query("kind") String kind,
@Query("active") String active)
@Query("active") String active,
@Query("Vulnerability") String Vulnerability,
@Query("Component") String Component,
@Query("ComponentVersion") String ComponentVersion)

@GET("/ssdservice/{version}/{type}/{source}/{source1}/{source2}/{source3}")
Object getSddResponse5(@Path('version') String version,
Expand Down

0 comments on commit 0b31772

Please sign in to comment.