Package cronapi.rest
Class CronapiREST
java.lang.Object
cronapi.rest.CronapiREST
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcrudDelete(String entity) org.springframework.http.HttpEntity<Object> org.springframework.http.HttpEntity<Object> org.springframework.http.HttpEntity<Object> org.springframework.http.HttpEntity<EntityMetadata> dataOptions(String entity) deleteRest(String clazz) deleteRestLegacy(String clazz) voiddownloadFile(String entity, String field, Var data) voiddownloadFileGet(String entity, String field, String ids) voidfilePreview(String fileName) getRest(jakarta.servlet.http.HttpServletRequest request) getRestLegacy(String clazz) postParams(Var[] vars, String clazz) postRestBinary(String body, String clazz) postRestFile(String clazz, jakarta.servlet.http.HttpServletRequest request) postRestForm(Map<String, String> body, String clazz) postRestLegacy(Var[] vars, String clazz) postRestRaw(String body, String clazz) putRestLegacy(Var[] vars, String clazz) queryDelete(String id, boolean isFromDataSource) org.springframework.http.HttpEntity<?> org.springframework.http.HttpEntity<Var> queryGetNew(String id) org.springframework.http.ResponseEntity<Object> uploadFile(org.springframework.web.multipart.MultipartFile[] uploadfiles)
-
Constructor Details
-
CronapiREST
public CronapiREST()
-
-
Method Details
-
dataOptions
@RequestMapping(method=GET, value="/metadata/{entity}/**") public org.springframework.http.HttpEntity<EntityMetadata> dataOptions(@PathVariable("entity") String entity) throws Exception - Throws:
Exception
-
crudGet
@RequestMapping(method=GET, value="/crud/{entity}/**") public org.springframework.http.HttpEntity<Object> crudGet(@PathVariable("entity") String entity, org.springframework.data.domain.Pageable pageable) throws Exception - Throws:
Exception
-
crudPut
@RequestMapping(method=PUT, value="/crud/{entity}/**") public org.springframework.http.HttpEntity<Object> crudPut(@PathVariable("entity") String entity, @RequestBody Var data) throws Exception - Throws:
Exception
-
crudPost
@RequestMapping(method=POST, value="/crud/{entity}/**") public org.springframework.http.HttpEntity<Object> crudPost(@PathVariable("entity") String entity, @RequestBody Var data) throws Exception - Throws:
Exception
-
crudDelete
@RequestMapping(method=DELETE, value="/crud/{entity}/**") public void crudDelete(@PathVariable("entity") String entity) throws Exception - Throws:
Exception
-
queryGetNew
@RequestMapping(method=GET, value="/query/{id}/__new__") public org.springframework.http.HttpEntity<Var> queryGetNew(@PathVariable("id") String id) throws Exception - Throws:
Exception
-
queryGet
@RequestMapping(method=GET, value="/query/{id}/**") public org.springframework.http.HttpEntity<?> queryGet(@PathVariable("id") String id, org.springframework.data.domain.Pageable pageable) throws Exception - Throws:
Exception
-
queryPost
@RequestMapping(method=POST, value="/query/{id}/**") public Object queryPost(@PathVariable("id") String id, @RequestBody Map<?, ?> rawData, @RequestHeader(value="X-From-DataSource",defaultValue="false") boolean isFromDataSource) throws Exception- Throws:
Exception
-
queryPut
@RequestMapping(method=PUT, value="/query/{id}/**") public Object queryPut(@PathVariable("id") String id, @RequestBody Map<?, ?> rawData, @RequestHeader(value="X-From-DataSource",defaultValue="false") boolean isFromDataSource) throws Exception- Throws:
Exception
-
queryDelete
@RequestMapping(method=DELETE, value="/query/{id}/**") public Object queryDelete(@PathVariable("id") String id, @RequestHeader(value="X-From-DataSource",defaultValue="false") boolean isFromDataSource) throws Exception - Throws:
Exception
-
postBody
@RequestMapping(method=POST, value="/call/body/{class}/**") public RestResult postBody(@RequestBody RestBody body, @PathVariable("class") String clazz) throws Exception - Throws:
Exception
-
getParam
@RequestMapping(method=GET, value="/call/{class}/**") public RestResult getParam(@PathVariable("class") String clazz) throws Exception - Throws:
Exception
-
postParams
@RequestMapping(method=POST, value="/call/{class}/**") public RestResult postParams(@RequestBody Var[] vars, @PathVariable("class") String clazz) throws Exception - Throws:
Exception
-
getRest
@RequestMapping(method=GET, value="/rest/**") public Var getRest(jakarta.servlet.http.HttpServletRequest request) throws Exception - Throws:
Exception
-
postRestRaw
@RequestMapping(method=POST, value="/rest/raw/{class}/**") public Var postRestRaw(@RequestBody(required=false) String body, @PathVariable("class") String clazz) throws Exception - Throws:
Exception
-
postRestBinary
@RequestMapping(method=POST, value="/rest/{class}/**", consumes="text/plain") public Var postRestBinary(@RequestBody(required=false) String body, @PathVariable("class") String clazz) throws Exception - Throws:
Exception
-
postRestForm
@RequestMapping(method=POST, value="/rest/{class}/**", consumes="application/x-www-form-urlencoded") public Var postRestForm(@RequestParam Map<String, String> body, @PathVariable("class") String clazz) throws Exception- Throws:
Exception
-
postRestFile
@RequestMapping(method=POST, value="/rest/{class}/**", consumes="multipart/form-data") public Var postRestFile(@PathVariable("class") String clazz, jakarta.servlet.http.HttpServletRequest request) throws Exception - Throws:
Exception
-
postRest
@RequestMapping(method=POST, value="/rest/{class}/**", consumes={"application/json","application/atom+xml"}) public Var postRest(@RequestBody(required=false) Var var, @PathVariable("class") String clazz) throws Exception - Throws:
Exception
-
putRest
@RequestMapping(method=PUT, value="/rest/{class}/**") public Var putRest(@RequestBody(required=false) Var var, @PathVariable("class") String clazz) throws Exception - Throws:
Exception
-
deleteRest
@RequestMapping(method=DELETE, value="/rest/{class}/**") public Var deleteRest(@PathVariable("class") String clazz) throws Exception - Throws:
Exception
-
postRestLegacy
@RequestMapping(method=POST, value="/legacyrest/{class}/**") public Var postRestLegacy(@RequestBody(required=false) Var[] vars, @PathVariable("class") String clazz) throws Exception - Throws:
Exception
-
getRestLegacy
@RequestMapping(method=GET, value="/legacyrest/{class}/**") public Var getRestLegacy(@PathVariable("class") String clazz) throws Exception - Throws:
Exception
-
putRestLegacy
@RequestMapping(method=PUT, value="/legacyrest/{class}/**") public Var putRestLegacy(@RequestBody(required=false) Var[] vars, @PathVariable("class") String clazz) throws Exception - Throws:
Exception
-
deleteRestLegacy
@RequestMapping(method=DELETE, value="/legacyrest/{class}/**") public Var deleteRestLegacy(@PathVariable("class") String clazz) throws Exception - Throws:
Exception
-
securityRoles
@RequestMapping(method=GET, value="/security/roles") public List<SecurityUtil.SecurityGroup> securityRoles() throws Exception- Throws:
Exception
-
filePreview
@RequestMapping(method=GET, value="/filePreview/{fileName}/**") public void filePreview(@PathVariable("fileName") String fileName) throws Exception - Throws:
Exception
-
downloadFile
@RequestMapping(method=POST, value="/downloadFile/{entity}/{field}/**") public void downloadFile(@PathVariable("entity") String entity, @PathVariable("field") String field, @RequestBody Var data) throws Exception - Throws:
Exception
-
downloadFileGet
@RequestMapping(method=GET, value="/downloadFile/{entity}/{field}/{ids}/**") public void downloadFileGet(@PathVariable("entity") String entity, @PathVariable("field") String field, @PathVariable("ids") String ids) throws Exception - Throws:
Exception
-
uploadFile
@RequestMapping(method=POST, value="/uploadFile") public org.springframework.http.ResponseEntity<Object> uploadFile(@RequestParam("file") org.springframework.web.multipart.MultipartFile[] uploadfiles) throws Exception - Throws:
Exception
-