Skip to content

Commit

Permalink
Autopiot apis for put methods
Browse files Browse the repository at this point in the history
  • Loading branch information
mscr06 committed Sep 16, 2020
1 parent 8443229 commit 43188ad
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -264,44 +264,65 @@ class OpsmxAutopilotController {

@ApiOperation(value = "Endpoint for autopilot rest services")
@RequestMapping(value = "/{type}", method = RequestMethod.PUT)
Object updateAutopilotResponse(@PathVariable("version") String version,
@PathVariable("type") String type,
Object updateAutopilotResponse(@PathVariable("type") String type,
@RequestBody(required = false) Object data) {

return opsmxAutopilotService.updateAutopilotResponse(version, type, data)
return opsmxAutopilotService.updateAutopilotResponse(type, data)
}

@ApiOperation(value = "Endpoint for autopilot rest services")
@RequestMapping(value = "/{type}/{source}", method = RequestMethod.PUT)
Object updateAutopilotResponse1(@PathVariable("version") String version,
@PathVariable("type") String type,
Object updateAutopilotResponse1(@PathVariable("type") String type,
@PathVariable("source") String source,
@RequestBody(required = false) Object data) {

return opsmxAutopilotService.updateAutopilotResponse1(version, type, source, data)
return opsmxAutopilotService.updateAutopilotResponse1(type, source, data)
}

@ApiOperation(value = "Endpoint for autopilot rest services")
@RequestMapping(value = "/{type}/{source}/{source1}", method = RequestMethod.PUT)
Object updateAutopilotResponse2(@PathVariable("version") String version,
@PathVariable("type") String type,
Object updateAutopilotResponse2(@PathVariable("type") String type,
@PathVariable("source") String source,
@PathVariable("source1") String source1,
@RequestBody(required = false) Object data) {

return opsmxAutopilotService.updateAutopilotResponse2(version, type, source, source1, data)
return opsmxAutopilotService.updateAutopilotResponse2(type, source, source1, data)
}

@ApiOperation(value = "Endpoint for autopilot rest services")
@RequestMapping(value = "/{type}/{source}/{source1}/{source2}", method = RequestMethod.PUT)
Object updatePlatformResponse3(@PathVariable("version") String version,
@PathVariable("type") String type,
Object updatePlatformResponse3(@PathVariable("type") String type,
@PathVariable("source") String source,
@PathVariable("source1") String source1,
@PathVariable("source2") String source2,
@RequestBody(required = false) Object data) {

return opsmxAutopilotService.updateAutopilotResponse3(version, type, source, source1, source2, data)
return opsmxAutopilotService.updateAutopilotResponse3(type, source, source1, source2, data)
}

@ApiOperation(value = "Endpoint for autopilot rest services")
@RequestMapping(value = "/{type}/{source}/{source1}/{source2}/{source3}", method = RequestMethod.PUT)
Object updatePlatformResponse3(@PathVariable("type") String type,
@PathVariable("source") String source,
@PathVariable("source1") String source1,
@PathVariable("source2") String source2,
@PathVariable("source3") String source3,
@RequestBody(required = false) Object data) {

return opsmxAutopilotService.updateAutopilotResponse4(type, source, source1, source2, source3, data)
}

@ApiOperation(value = "Endpoint for autopilot rest services")
@RequestMapping(value = "/{type}/{source}/{source1}/{source2}/{source3}/{source4}", method = RequestMethod.PUT)
Object updatePlatformResponse3(@PathVariable("type") String type,
@PathVariable("source") String source,
@PathVariable("source1") String source1,
@PathVariable("source2") String source2,
@PathVariable("source3") String source3,
@PathVariable("source4") String source4,
@RequestBody(required = false) Object data) {

return opsmxAutopilotService.updateAutopilotResponse5(type, source, source1, source2, source3, source4, data)
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -172,29 +172,42 @@ interface OpsmxAutopilotService {
@Body Object data)

@PUT("/autopilot/{type}")
Object updateAutopilotResponse(@Path('version') String version,
@Path('type') String type,
Object updateAutopilotResponse(@Path('type') String type,
@Body Object data)

@PUT("/autopilot/{type}/{source}")
Object updateAutopilotResponse1(@Path('version') String version,
@Path('type') String type,
Object updateAutopilotResponse1(@Path('type') String type,
@Path('source') String source,
@Body Object data)

@PUT("/autopilot/{type}/{source}/{source1}")
Object updateAutopilotResponse2(@Path('version') String version,
@Path('type') String type,
Object updateAutopilotResponse2(@Path('type') String type,
@Path('source') String source,
@Path('source1') String source1,
@Body Object data)

@PUT("/autopilot/{type}/{source}/{source1}/{source2}")
Object updateAutopilotResponse3(@Path('version') String version,
@Path('type') String type,
Object updateAutopilotResponse3(@Path('type') String type,
@Path('source') String source,
@Path('source1') String source1,
@Path('source2') String source2,
@Body Object data)

@PUT("/autopilot/{type}/{source}/{source1}/{source2}/{source3}")
Object updateAutopilotResponse4(@Path('type') String type,
@Path('source') String source,
@Path('source1') String source1,
@Path('source2') String source2,
@Path('source3') String source3,
@Body Object data)

@PUT("/autopilot/{type}/{source}/{source1}/{source2}/{source3}/{source4}")
Object updateAutopilotResponse5(@Path('type') String type,
@Path('source') String source,
@Path('source1') String source1,
@Path('source2') String source2,
@Path('source3') String source3,
@Path('source4') String source4,
@Body Object data)

}

0 comments on commit 43188ad

Please sign in to comment.