Class ImportedURLResource


  • @RestController
    @RequestMapping("/api")
    public class ImportedURLResource
    extends Object
    REST controller for managing ImportedURL.
    • Constructor Detail

      • ImportedURLResource

        public ImportedURLResource​(ImportedURLService importedURLService)
    • Method Detail

      • createImportedURL

        @PostMapping("/imported-urls")
        public org.springframework.http.ResponseEntity<ImportedURL> createImportedURL​(@Valid @RequestBody
                                                                                      @Valid ImportedURL importedURL)
                                                                               throws URISyntaxException
        POST /imported-urls : Create a new importedURL.
        Parameters:
        importedURL - the importedURL to create.
        Returns:
        the ResponseEntity with status 201 (Created) and with body the new importedURL, or with status 400 (Bad Request) if the importedURL has already an ID.
        Throws:
        URISyntaxException - if the Location URI syntax is incorrect.
      • updateImportedURL

        @PutMapping("/imported-urls")
        public org.springframework.http.ResponseEntity<ImportedURL> updateImportedURL​(@Valid @RequestBody
                                                                                      @Valid ImportedURL importedURL)
                                                                               throws URISyntaxException
        PUT /imported-urls : Updates an existing importedURL.
        Parameters:
        importedURL - the importedURL to update.
        Returns:
        the ResponseEntity with status 200 (OK) and with body the updated importedURL, or with status 400 (Bad Request) if the importedURL is not valid, or with status 500 (Internal Server Error) if the importedURL couldn't be updated.
        Throws:
        URISyntaxException - if the Location URI syntax is incorrect.
      • getAllImportedURLS

        @GetMapping("/imported-urls")
        public List<ImportedURL> getAllImportedURLS()
        GET /imported-urls : get all the importedURLS.
        Returns:
        the ResponseEntity with status 200 (OK) and the list of importedURLS in body.
      • getImportedURL

        @GetMapping("/imported-urls/{id}")
        public org.springframework.http.ResponseEntity<ImportedURL> getImportedURL​(@PathVariable
                                                                                   Long id)
        GET /imported-urls/:id : get the "id" importedURL.
        Parameters:
        id - the id of the importedURL to retrieve.
        Returns:
        the ResponseEntity with status 200 (OK) and with body the importedURL, or with status 404 (Not Found).
      • deleteImportedURL

        @DeleteMapping("/imported-urls/{id}")
        public org.springframework.http.ResponseEntity<Void> deleteImportedURL​(@PathVariable
                                                                               Long id)
        DELETE /imported-urls/:id : delete the "id" importedURL.
        Parameters:
        id - the id of the importedURL to delete.
        Returns:
        the ResponseEntity with status 204 (NO_CONTENT).