Package io.jmix.rest.impl.controller
Class EntitiesController
java.lang.Object
io.jmix.rest.impl.controller.EntitiesController
@RestController("rest_EntitiesController")
@RequestMapping(value="/rest/entities",
produces="application/json;charset=UTF-8")
public class EntitiesController
extends Object
Controller that performs CRUD entity operations
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncountSearchEntitiesListGet
(String entityName, String filter, String modelVersion) countSearchEntitiesListPost
(String entityName, String requestBodyJson) org.springframework.http.ResponseEntity<String>
createEntity
(String entityJson, String entityName, String responseView, String responseFetchPlan, String modelVersion, javax.servlet.http.HttpServletRequest request) void
deleteEntities
(String entitiesIdJson, String entityName, String modelVersion) void
deleteEntity
(String entityName, String entityId, String modelVersion) org.springframework.http.ResponseEntity<String>
loadEntitiesList
(String entityName, String view, String fetchPlan, Integer limit, Integer offset, String sort, Boolean returnNulls, Boolean returnCount, Boolean dynamicAttributes, String modelVersion) loadEntity
(String entityName, String entityId, String view, String fetchPlan, Boolean returnNulls, Boolean dynamicAttributes, String modelVersion) org.springframework.http.ResponseEntity<String>
searchEntitiesListGet
(String entityName, String filter, String view, String fetchPlan, Integer limit, Integer offset, String sort, Boolean returnNulls, Boolean returnCount, Boolean dynamicAttributes, String modelVersion) org.springframework.http.ResponseEntity<String>
searchEntitiesListPost
(String entityName, String requestBodyJson) updateEntities
(String entitiesJson, String entityName, String responseView, String responseFetchPlan, String modelVersion) updateEntity
(String entityJson, String entityName, String entityId, String responseView, String responseFetchPlan, String modelVersion)
-
Field Details
-
entitiesControllerManager
-
-
Constructor Details
-
EntitiesController
public EntitiesController()
-
-
Method Details
-
loadEntity
@GetMapping("/{entityName}/{entityId}") public String loadEntity(@PathVariable String entityName, @PathVariable String entityId, @RequestParam(required=false) String view, @RequestParam(required=false) String fetchPlan, @RequestParam(required=false) Boolean returnNulls, @RequestParam(required=false) Boolean dynamicAttributes, @RequestParam(required=false) String modelVersion) -
loadEntitiesList
@GetMapping("/{entityName}") public org.springframework.http.ResponseEntity<String> loadEntitiesList(@PathVariable String entityName, @RequestParam(required=false) String view, @RequestParam(required=false) String fetchPlan, @RequestParam(required=false) Integer limit, @RequestParam(required=false) Integer offset, @RequestParam(required=false) String sort, @RequestParam(required=false) Boolean returnNulls, @RequestParam(required=false) Boolean returnCount, @RequestParam(required=false) Boolean dynamicAttributes, @RequestParam(required=false) String modelVersion) -
searchEntitiesListGet
@GetMapping("/{entityName}/search") public org.springframework.http.ResponseEntity<String> searchEntitiesListGet(@PathVariable String entityName, @RequestParam String filter, @RequestParam(required=false) String view, @RequestParam(required=false) String fetchPlan, @RequestParam(required=false) Integer limit, @RequestParam(required=false) Integer offset, @RequestParam(required=false) String sort, @RequestParam(required=false) Boolean returnNulls, @RequestParam(required=false) Boolean returnCount, @RequestParam(required=false) Boolean dynamicAttributes, @RequestParam(required=false) String modelVersion) -
countSearchEntitiesListGet
-
searchEntitiesListPost
-
countSearchEntitiesListPost
-
createEntity
@PostMapping("/{entityName}") public org.springframework.http.ResponseEntity<String> createEntity(@RequestBody String entityJson, @PathVariable String entityName, @RequestParam(required=false) String responseView, @RequestParam(required=false) String responseFetchPlan, @RequestParam(required=false) String modelVersion, javax.servlet.http.HttpServletRequest request) -
updateEntity
@PutMapping("/{entityName}/{entityId}") public String updateEntity(@RequestBody String entityJson, @PathVariable String entityName, @PathVariable String entityId, @RequestParam(required=false) String responseView, @RequestParam(required=false) String responseFetchPlan, @RequestParam(required=false) String modelVersion) -
updateEntities
-
deleteEntity
-
deleteEntities
-