Skip to content

Commit

Permalink
Pagination parameters added
Browse files Browse the repository at this point in the history
  • Loading branch information
Pranav-b-7 committed Feb 19, 2021
1 parent 740d790 commit a45ecd8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ class OpsmxDashboardController {
@PathVariable("type") String type,
@PathVariable("source") String source,
@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 = "order", required = false) String order,
@RequestParam(value = "pageNo", required = false) Integer pageNo,
@RequestParam(value = "pageLimit", required = false) Integer pageLimit,
@RequestParam(value = "sortBy", required = false) String sortBy,
@RequestParam(value = "sortOrder", required = false) String sortOrder,
@RequestParam(value = "search", required = false) String search) {

return opsmxDashboardService.getDashboardResponse4(version, type, source, source1, index, limit, sort, order, search)
return opsmxDashboardService.getDashboardResponse4(version, type, source, source1, pageNo, pageLimit, sortBy, sortOrder, search)
}

@ApiOperation(value = "Endpoint for dashboard rest services")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ interface OpsmxDashboardService {
@Path('type') String type,
@Path('source') String source,
@Path('source1') String source1,
@Query("index") Integer index,
@Query("limit") Integer limit,
@Query("sort") String sort,
@Query("order") String order,
@Query("pageNo") Integer pageNo,
@Query("pageLimit") Integer pageLimit,
@Query("sortBy") String sortBy,
@Query("sortOrder") String sortOrder,
@Query("search") String search)

@GET("/dashboardservice/{version}/{type}/{source}/{source1}/{source2}")
Expand Down

0 comments on commit a45ecd8

Please sign in to comment.