Skip to content

Commit

Permalink
changed gate request
Browse files Browse the repository at this point in the history
  • Loading branch information
vivek-opsmx committed Jan 12, 2024
1 parent 147079c commit 66f228a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 60 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class OpsmxPlatformController {
return opsmxPlatformService.getPlatformResponse8(version, type, source, source1, source2, source3, source4, source5, source6, gateType)
}

@ApiOperation(value = "download the argo manifest file")
@ApiOperation(value = "download the CD Integrator manifest file")
@GetMapping(value = "/{version}/{type}/{source}/manifest", produces = "application/octet-stream")
@ResponseBody
Object getDownloadAgentManifestFile(@PathVariable("type") String type,
Expand Down Expand Up @@ -312,17 +312,9 @@ class OpsmxPlatformController {
Object postPlatformResponse3(@PathVariable("version") String version,
@PathVariable("type") String type,
@PathVariable("source") String source,
@RequestParam("isExists") boolean isExists,
@RequestParam(value = "description", required = false) String description,
@RequestParam(value = "namespace", required = false) String namespace,
@RequestParam(value = "argoCdUrl", required = false) String argoCdUrl,
@RequestParam(value = "rolloutsEnabled") boolean rolloutsEnabled,
@RequestParam(value = "isdUrl", required = false) String isdUrl,
@RequestParam(value = "argoName") String argoName,
@RequestParam(value = "agentName") String agentName,
@RequestBody(required = false) Object data) {

return opsmxPlatformService.postPlatformResponse3(version, type, source, isExists, description, namespace, argoCdUrl, rolloutsEnabled, isdUrl, argoName, agentName, data)
return opsmxPlatformService.postPlatformResponse3(version, type, source, data)
}

@ApiOperation(value = "Endpoint for platform rest services")
Expand Down Expand Up @@ -351,17 +343,9 @@ class OpsmxPlatformController {
@PathVariable("source") String source,
@PathVariable("source1") String source1,
@PathVariable("source2") String source2,
@RequestParam("isExists") boolean isExists,
@RequestParam(value = "description", required = false) String description,
@RequestParam(value = "namespace", required = false) String namespace,
@RequestParam(value = "argoCdUrl", required = false) String argoCdUrl,
@RequestParam(value = "rolloutsEnabled") boolean rolloutsEnabled,
@RequestParam(value = "isdUrl", required = false) String isdUrl,
@RequestParam(value = "argoName", required = false) String argoName,
@RequestParam(value = "agentName", required = false) String agentName,
@RequestBody(required = false) Object data) {

return opsmxPlatformService.postPlatformResponse5(version, type, source, source1, source2, isExists, description, namespace, argoCdUrl, rolloutsEnabled, isdUrl, argoName, agentName, data)
return opsmxPlatformService.postPlatformResponse5(version, type, source, source1, source2, data)
}

@ApiOperation(value = "Endpoint for platform rest services")
Expand All @@ -372,17 +356,9 @@ class OpsmxPlatformController {
@PathVariable("source1") String source1,
@PathVariable("source2") String source2,
@PathVariable("source3") String source3,
@RequestParam("isExists") boolean isExists,
@RequestParam(value = "description", required = false) String description,
@RequestParam(value = "namespace", required = false) String namespace,
@RequestParam(value = "argoCdUrl", required = false) String argoCdUrl,
@RequestParam(value = "rolloutsEnabled") boolean rolloutsEnabled,
@RequestParam(value = "isdUrl", required = false) String isdUrl,
@RequestParam(value = "argoName") String argoName,
@RequestParam(value = "agentName") String agentName,
@RequestBody(required = false) Object data) {

return opsmxPlatformService.postPlatformResponse6(version, type, source, source1, source2, source3, isExists, description, namespace, argoCdUrl, rolloutsEnabled, isdUrl, argoName, agentName, data)
return opsmxPlatformService.postPlatformResponse6(version, type, source, source1, source2, source3, data)
}

@ApiOperation(value = "Endpoint for platform rest services")
Expand Down Expand Up @@ -410,9 +386,12 @@ class OpsmxPlatformController {
@PathVariable("type") String type,
@PathVariable("source") String source,
@PathVariable("source1") String source1,
@RequestParam(value = "argoName", required = false ) String argoName,
@RequestParam(value = "agentName", required = false) String agentName,
@RequestParam(value = "nameSpace", required = false) String nameSpace,
@RequestBody(required = false) Object data) {

return opsmxPlatformService.updatePlatformResponse2(version, type, source, source1, data)
return opsmxPlatformService.updatePlatformResponse2(version, type, source, source1, argoName, agentName, nameSpace, data)
}

@ApiOperation(value = "Endpoint for platform rest services")
Expand All @@ -423,12 +402,9 @@ class OpsmxPlatformController {
@PathVariable("source1") String source1,
@PathVariable("source2") String source2,
@RequestParam(value = "sourceName", required = false) String sourceName,
@RequestParam(value = "argoName", required = false) String argoName,
@RequestParam(value = "agentName", required = false) String agentName,
@RequestParam(value = "nameSpace", required = false) String nameSpace,
@RequestBody(required = false) Object data) {

return opsmxPlatformService.updatePlatformResponse3(version, type, source, source1, source2,sourceName,argoName,agentName,nameSpace, data)
return opsmxPlatformService.updatePlatformResponse3(version, type, source, source1, source2, data)
}

@ApiOperation(value = "Endpoint for platform rest services")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,6 @@ interface OpsmxPlatformService {
Object postPlatformResponse3(@Path('version') String version,
@Path('type') String type,
@Path('source') String source,
@Query("isExists") boolean isExists,
@Query(value = "description") String description,
@Query(value = "namespace") String namespace,
@Query(value = "argoCdUrl") String argoCdUrl,
@Query(value = "rolloutsEnabled") boolean rolloutsEnabled,
@Query(value = "isdUrl") String isdUrl,
@Query("argoName") String argoName,
@Query("agentName") String agentName,
@Body Object data)

@POST("/platformservice/{version}/{type}/{source}/{source1}")
Expand All @@ -200,14 +192,6 @@ interface OpsmxPlatformService {
@Path('source') String source,
@Path('source1') String source1,
@Path('source2') String source2,
@Query("isExists") boolean isExists,
@Query(value = "description") String description,
@Query(value = "namespace") String namespace,
@Query(value = "argoCdUrl") String argoCdUrl,
@Query(value = "rolloutsEnabled") boolean rolloutsEnabled,
@Query(value = "isdUrl") String isdUrl,
@Query("argoName") String argoName,
@Query("agentName") String agentName,
@Body Object data)

@POST("/platformservice/{version}/{type}/{source}/{source1}/{source2}/{source3}")
Expand All @@ -217,14 +201,6 @@ interface OpsmxPlatformService {
@Path('source1') String source1,
@Path('source2') String source2,
@Path('source3') String source3,
@Query("isExists") boolean isExists,
@Query(value = "description") String description,
@Query(value = "namespace") String namespace,
@Query(value = "argoCdUrl") String argoCdUrl,
@Query(value = "rolloutsEnabled") boolean rolloutsEnabled,
@Query(value = "isdUrl") String isdUrl,
@Query("argoName") String argoName,
@Query("agentName") String agentName,
@Body Object data)

@PUT("/platformservice/{version}/{type}")
Expand All @@ -243,6 +219,9 @@ interface OpsmxPlatformService {
@Path('type') String type,
@Path('source') String source,
@Path('source1') String source1,
@Query('argoName') String argoName,
@Query('agentName') String agentName,
@Query('nameSpace') String nameSpace,
@Body Object data)

@PUT("/platformservice/{version}/{type}/{source}/{source1}/{source2}")
Expand All @@ -252,9 +231,6 @@ interface OpsmxPlatformService {
@Path('source1') String source1,
@Path('source2') String source2,
@Query("sourceName") String sourceName,
@Query('argoName') String argoName,
@Query('agentName') String agentName,
@Query('nameSpace') String nameSpace,
@Body Object data)

@PUT("/platformservice/{version}/{type}/{source}/{source1}/{source2}/{source3}/{source4}")
Expand Down

0 comments on commit 66f228a

Please sign in to comment.