Skip to content

Commit

Permalink
OP-20699 : Added Id Query param
Browse files Browse the repository at this point in the history
  • Loading branch information
sriharshakancharla committed Jul 12, 2023
1 parent 478a3f9 commit 7c0ba5a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ class OpsmxSsdController {
@RequestParam(value = "noOfDays", required = false) Integer noOfDays,
@RequestParam(value = "policy", required = false) String policy,
@RequestParam(value = "typeList", required = false) String typeList,
@RequestParam(value = "alertName", required = false) String alertName) {
return opsMxSsdService.getSddResponse1(version, type, account, appId, image, imageTag, stage, deployedAt, appName, pageNo, pageLimit, sortBy, sortOrder, search, noOfDays, policy,typeList, alertName)
@RequestParam(value = "alertName", required = false) String alertName,
@RequestParam(value = "id", required = false) String id) {
return opsMxSsdService.getSddResponse1(version, type, account, appId, image, imageTag, stage, deployedAt, appName, pageNo, pageLimit, sortBy, sortOrder, search, noOfDays, policy,typeList, alertName, id)
}

@ApiOperation(value = "Endpoint for ssd services")
Expand All @@ -98,8 +99,9 @@ class OpsmxSsdController {
@RequestParam(value = "search", required = false) String search,
@RequestParam(value = "noOfDays", required = false) Integer noOfDays,
@RequestParam(value = "alertName", required = false) String alertName,
@RequestParam(value = "riskStatus", required = false) String riskStatus) {
return opsMxSsdService.getSddResponse2(version, type, source, account, appId, image, imageTag, stage, deployedAt, appName, pageNo, pageLimit, sortBy, sortOrder, search, noOfDays, alertName, riskStatus)
@RequestParam(value = "riskStatus", required = false) String riskStatus,
@RequestParam(value = "id", required = false) String id) {
return opsMxSsdService.getSddResponse2(version, type, source, account, appId, image, imageTag, stage, deployedAt, appName, pageNo, pageLimit, sortBy, sortOrder, search, noOfDays, alertName, riskStatus, id)
}

@ApiOperation(value = "Endpoint for ssd services")
Expand All @@ -110,8 +112,9 @@ class OpsmxSsdController {
@PathVariable("source1") String source1,
@RequestParam(value = "appId", required = false) Integer appId,
@RequestParam(value = "image", required = false) String image,
@RequestParam(value = "appName", required = false) String appName) {
return opsMxSsdService.getSddResponse3(version, type, source, source1, appId, image, appName)
@RequestParam(value = "appName", required = false) String appName,
@RequestParam(value = "id", required = false) String id) {
return opsMxSsdService.getSddResponse3(version, type, source, source1, appId, image, appName, id)
}

@ApiOperation(value = "Endpoint for ssd services")
Expand All @@ -133,8 +136,9 @@ class OpsmxSsdController {
@RequestParam(value = "sortBy", required = false) String sortBy,
@RequestParam(value = "sortOrder", required = false) String sortOrder,
@RequestParam(value = "search", required = false) String search,
@RequestParam(value = "noOfDays", required = false) Integer noOfDays) {
return opsMxSsdService.getSddResponse4(version, type, source, source1, source2, account, appId, image, imageTag, stage, deployedAt, appName, pageNo, pageLimit, sortBy, sortOrder, search, noOfDays)
@RequestParam(value = "noOfDays", required = false) Integer noOfDays,
@RequestParam(value = "id", required = false) String id) {
return opsMxSsdService.getSddResponse4(version, type, source, source1, source2, account, appId, image, imageTag, stage, deployedAt, appName, pageNo, pageLimit, sortBy, sortOrder, search, noOfDays, id)
}

@ApiOperation(value = "Endpoint for ssd services")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ interface OpsmxSsdService {
@Query("noOfDays") Integer noOfDays,
@Query("policy") String policy,
@Query("typeList") String typeList,
@Query("alertName") String alertName)
@Query("alertName") String alertName,
@Query("id") String id)

@GET("/ssdservice/{version}/{type}/{source}")
Object getSddResponse2(@Path('version') String version,
Expand All @@ -63,7 +64,8 @@ interface OpsmxSsdService {
@Query("search") String search,
@Query("noOfDays") Integer noOfDays,
@Query("alertName") String alertName,
@Query("riskStatus") String riskStatus)
@Query("riskStatus") String riskStatus,
@Query("id") String id)

@GET("/ssdservice/{version}/{type}/{source}/{source1}")
Object getSddResponse3(@Path('version') String version,
Expand All @@ -72,7 +74,8 @@ interface OpsmxSsdService {
@Path('source1') String source1,
@Query("appId") Integer appId,
@Query("image") String image,
@Query("appName") String appName)
@Query("appName") String appName,
@Query("id") String id)

@GET("/ssdservice/{version}/{type}/{source}/{source1}/{source2}")
Object getSddResponse4(@Path('version') String version,
Expand All @@ -92,7 +95,8 @@ interface OpsmxSsdService {
@Query("sortBy") String sortBy,
@Query("sortOrder") String sortOrder,
@Query("search") String search,
@Query("noOfDays") Integer noOfDays)
@Query("noOfDays") Integer noOfDays,
@Query("id") String id)

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

0 comments on commit 7c0ba5a

Please sign in to comment.