From b73b6e3e6ff02cef358ddee4eec541561df31087 Mon Sep 17 00:00:00 2001 From: Pranav-b-7 <pranav.bhaskaran@opsmx.io> Date: Wed, 17 Feb 2021 15:27:21 +0530 Subject: [PATCH] search and order param added --- .../gate/controllers/OpsmxDashboardController.groovy | 6 ++++-- .../gate/services/internal/OpsmxDashboardService.groovy | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/OpsmxDashboardController.groovy b/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/OpsmxDashboardController.groovy index f10decb464..b19a39f2d3 100644 --- a/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/OpsmxDashboardController.groovy +++ b/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/OpsmxDashboardController.groovy @@ -72,9 +72,11 @@ class OpsmxDashboardController { @PathVariable("source1") String source1, @RequestParam(value = "index", required = false) Integer index, @RequestParam(value = "limit", required = false) Integer limit, - @RequestParam(value = "sort", required = false) String sort) { + @RequestParam(value = "sort", required = false) String sort, + @RequestParam(value = "order", required = false) String order, + @RequestParam(value = "search", required = false) String search) { - return opsmxDashboardService.getDashboardResponse4(version, type, source, source1, index, limit, sort) + return opsmxDashboardService.getDashboardResponse4(version, type, source, source1, index, limit, sort, order, search) } @ApiOperation(value = "Endpoint for dashboard rest services") diff --git a/gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/internal/OpsmxDashboardService.groovy b/gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/internal/OpsmxDashboardService.groovy index 0c9fc87f13..61554a0c93 100644 --- a/gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/internal/OpsmxDashboardService.groovy +++ b/gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/internal/OpsmxDashboardService.groovy @@ -37,7 +37,9 @@ interface OpsmxDashboardService { @Path('source1') String source1, @Query("index") Integer index, @Query("limit") Integer limit, - @Query("sort") String sort) + @Query("sort") String sort, + @Query("order") String order, + @Query("search") String search) @GET("/dashboardservice/{version}/{type}/{source}/{source1}/{source2}") Object getDashboardResponse5(@Path('version') String version,