Skip to content

Commit

Permalink
added query param supported (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pranav-b-7 authored Jan 25, 2022
1 parent e2b90ce commit ced24e6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ class OpsmxPlatformController {
Object getPlatformResponse1(@PathVariable("version") String version,
@PathVariable("type") String type,
@RequestParam(value = "datasourceType", required = false) String datasourceType,
@RequestParam(value = "accountName", required = false) String accountName) {
return opsmxPlatformService.getPlatformResponse1(version, type, datasourceType, accountName)
@RequestParam(value = "accountName", required = false) String accountName,
@RequestParam(value = "source", required = false) String source,
@RequestParam(value = "permission", required = false) String permission) {
return opsmxPlatformService.getPlatformResponse1(version, type, datasourceType, accountName, source, permission)
}

@ApiOperation(value = "Endpoint for platform rest services")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ interface OpsmxPlatformService {
Object getPlatformResponse1(@Path('version') String version,
@Path('type') String type,
@Query("datasourceType") String datasourceType,
@Query("accountName") String accountName)
@Query("accountName") String accountName,
@Query("source") String source,
@Query("permission") String permission)

@GET("/platformservice/{version}/{type}/{source}")
Object getPlatformResponse(@Path('version') String version,
Expand Down

0 comments on commit ced24e6

Please sign in to comment.