Package cronapi.rest

Class CronapiREST


  • @RestController
    @RequestMapping("/api/cronapi")
    public class CronapiREST
    extends Object
    • Constructor Detail

      • CronapiREST

        public CronapiREST()
    • Method Detail

      • 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
      • 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/{class}/**")
        public Var getRest​(@PathVariable("class")
                           String clazz)
                    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,
                                javax.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
      • 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