@RestController(value="cuba_ServicesController")
@RequestMapping(value="/v2/services")
public class ServicesController
extends java.lang.Object
Constructor and Description |
---|
ServicesController() |
Modifier and Type | Method and Description |
---|---|
RestServicesConfiguration.RestServiceInfo |
getServiceInfo(java.lang.String serviceName) |
java.util.Collection<RestServicesConfiguration.RestServiceInfo> |
getServiceInfos() |
org.springframework.http.ResponseEntity<java.lang.String> |
invokeServiceMethodGet(java.lang.String serviceName,
java.lang.String methodName,
java.lang.String modelVersion,
java.util.Map<java.lang.String,java.lang.String> paramsMap) |
org.springframework.http.ResponseEntity<java.lang.String> |
invokeServiceMethodPost(java.lang.String serviceName,
java.lang.String methodName,
java.lang.String modelVersion,
java.lang.String paramsJson) |
@PostMapping(value="/{serviceName}/{methodName}") public org.springframework.http.ResponseEntity<java.lang.String> invokeServiceMethodPost(@PathVariable java.lang.String serviceName, @PathVariable java.lang.String methodName, @RequestParam(required=false) java.lang.String modelVersion, @RequestBody(required=false) java.lang.String paramsJson)
@GetMapping(value="/{serviceName}/{methodName}") public org.springframework.http.ResponseEntity<java.lang.String> invokeServiceMethodGet(@PathVariable java.lang.String serviceName, @PathVariable java.lang.String methodName, @RequestParam(required=false) java.lang.String modelVersion, @RequestParam java.util.Map<java.lang.String,java.lang.String> paramsMap)
@GetMapping public java.util.Collection<RestServicesConfiguration.RestServiceInfo> getServiceInfos()
@GetMapping(value="/{serviceName}") public RestServicesConfiguration.RestServiceInfo getServiceInfo(@PathVariable java.lang.String serviceName)