Class DocumentController

java.lang.Object
org.bh_foundation.e_sign.controllers.DocumentController

@RestController @RequestMapping("/api/document") public class DocumentController extends Object
  • Constructor Details

    • DocumentController

      public DocumentController(DocumentService documentService)
  • Method Details

    • getRequested

      @GetMapping("/requested-list") public org.springframework.http.ResponseEntity<ResponseDto<?>> getRequested()
    • getMine

      @GetMapping("/get-list") public org.springframework.http.ResponseEntity<?> getMine()
    • getRequestedById

      @GetMapping("/requested") public org.springframework.http.ResponseEntity<?> getRequestedById(@RequestParam(name="document") String id) throws Exception
      Throws:
      Exception
    • getMineById

      @GetMapping("/get") public org.springframework.http.ResponseEntity<ResponseDto<?>> getMineById(@RequestParam(name="document") String id) throws Exception
      Throws:
      Exception
    • getMineSigned

      @GetMapping("/signed") public org.springframework.http.ResponseEntity<ResponseDto<?>> getMineSigned()
    • send

      @PostMapping("/send") public org.springframework.http.ResponseEntity<?> send(@RequestParam String title, @RequestParam boolean order_sign, @RequestParam org.springframework.web.multipart.MultipartFile file, @RequestParam List<Long> signers_id, @RequestParam List<Integer> page_number) throws IOException
      Throws:
      IOException
    • approve

      @PutMapping("/approve") public org.springframework.http.ResponseEntity<?> approve(@RequestParam(name="document") String id) throws Exception
      Throws:
      Exception
    • deny

      @PutMapping("/deny") public org.springframework.http.ResponseEntity<ResponseDto<?>> deny(@RequestParam(name="document") String id) throws Exception
      Throws:
      Exception
    • sign

      @PutMapping("/sign") public org.springframework.http.ResponseEntity<?> sign(@RequestParam(name="document") String id, @RequestParam org.springframework.web.multipart.MultipartFile file, @RequestParam String passphrase, @RequestParam RenderChoice render_choice, @RequestParam String rect, @RequestParam String doc_size) throws IOException, Exception
      Throws:
      IOException
      Exception
    • delete

      @DeleteMapping("/delete") public org.springframework.http.ResponseEntity<ResponseDto<?>> delete(@RequestParam(name="document") String id) throws IOException, Exception
      Throws:
      IOException
      Exception
    • newSign

      @PutMapping("/sign-self") public org.springframework.http.ResponseEntity<?> newSign(@RequestParam org.springframework.web.multipart.MultipartFile file, @RequestParam Integer page, @RequestParam RenderChoice render_choice, @RequestParam String passphrase, @RequestParam String rect, @RequestParam String doc_size) throws Exception
      Throws:
      Exception
    • verify

      @PostMapping("/verify") public org.springframework.http.ResponseEntity<?> verify(@RequestParam org.springframework.web.multipart.MultipartFile file)
    • getUrlByFilename

      @GetMapping("/get-url-by-filename/{filename}") public org.springframework.http.ResponseEntity<?> getUrlByFilename(@PathVariable String filename)