Skip to content

Commit

Permalink
Merge pull request #44 from OpsMx/OP-7544
Browse files Browse the repository at this point in the history
Op 7544 - Add required query parameters in GATE service for audit client APIs
  • Loading branch information
ramyaravi-opsmx authored Sep 23, 2021
2 parents 0a87c40 + 6ee2d56 commit 4b8236f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression
import org.springframework.web.bind.annotation.PathVariable
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RequestMethod
import org.springframework.web.bind.annotation.RequestParam
import org.springframework.web.bind.annotation.RestController

@RequestMapping("/auditclientservice")
Expand Down Expand Up @@ -55,9 +56,13 @@ class OpsmxAuditClientServiceController {
Object getAuditClientResponse3(@PathVariable("version") String version,
@PathVariable("type") String type,
@PathVariable("source") String source,
@PathVariable("source1") String source1) {
@PathVariable("source1") String source1,
@RequestParam(value = "isTreeView", required = false) Boolean isTreeView,
@RequestParam(value = "isLatest", required = false) Boolean isLatest,
@RequestParam(value = "pageNo", required = false) Integer pageNo,
@RequestParam(value = "size", required = false) Integer size) {

return opsmxAuditClientService.getAuditClientResponse3(version, type, source, source1)
return opsmxAuditClientService.getAuditClientResponse3(version, type, source, source1, isTreeView, isLatest, pageNo, size)
}

@ApiOperation(value = "Endpoint for audit-client rest services")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package com.opsmx.spinnaker.gate.services

import retrofit.http.GET
import retrofit.http.Path
import retrofit.http.Query

interface OpsmxAuditClientService {

Expand All @@ -34,7 +35,11 @@ interface OpsmxAuditClientService {
Object getAuditClientResponse3(@Path('version') String version,
@Path('type') String type,
@Path('source') String source,
@Path('source1') String source1)
@Path('source1') String source1,
@Query("isTreeView") Boolean isTreeView,
@Query("isLatest") Boolean isLatest,
@Query("pageNo") Integer pageNo,
@Query("size") Integer size)

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

0 comments on commit 4b8236f

Please sign in to comment.