Package io.jmix.rest.impl.controller
Class ServicesController
java.lang.Object
io.jmix.rest.impl.controller.ServicesController
@RestController("rest_ServicesController")
@RequestMapping("/rest/services")
public class ServicesController
extends Object
Controller that is used for service method invocations with the REST API
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetServiceInfo
(String serviceName) org.springframework.http.ResponseEntity<String>
invokeServiceMethodGet
(String serviceName, String methodName, String modelVersion, Map<String, String> paramsMap) org.springframework.http.ResponseEntity<String>
invokeServiceMethodPost
(String serviceName, String methodName, String modelVersion, String paramsJson)
-
Field Details
-
servicesControllerManager
-
-
Constructor Details
-
ServicesController
public ServicesController()
-
-
Method Details
-
invokeServiceMethodPost
@PostMapping("/{serviceName}/{methodName}") public org.springframework.http.ResponseEntity<String> invokeServiceMethodPost(@PathVariable String serviceName, @PathVariable String methodName, @RequestParam(required=false) String modelVersion, @RequestBody(required=false) String paramsJson) throws Throwable - Throws:
Throwable
-
invokeServiceMethodGet
@GetMapping("/{serviceName}/{methodName}") public org.springframework.http.ResponseEntity<String> invokeServiceMethodGet(@PathVariable String serviceName, @PathVariable String methodName, @RequestParam(required=false) String modelVersion, @RequestParam Map<String, String> paramsMap) throws Throwable- Throws:
Throwable
-
getServiceInfos
-
getServiceInfo
@GetMapping("/{serviceName}") public RestServicesConfiguration.RestServiceInfo getServiceInfo(@PathVariable String serviceName)
-