Package de.trustable.ca3s.core.web.rest
Class ImportedURLResource
- java.lang.Object
-
- de.trustable.ca3s.core.web.rest.ImportedURLResource
-
@RestController @RequestMapping("/api") public class ImportedURLResource extends ObjectREST controller for managingImportedURL.
-
-
Constructor Summary
Constructors Constructor Description ImportedURLResource(ImportedURLService importedURLService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<ImportedURL>createImportedURL(@Valid ImportedURL importedURL)POST /imported-urls: Create a new importedURL.org.springframework.http.ResponseEntity<Void>deleteImportedURL(Long id)DELETE /imported-urls/:id: delete the "id" importedURL.List<ImportedURL>getAllImportedURLS()GET /imported-urls: get all the importedURLS.org.springframework.http.ResponseEntity<ImportedURL>getImportedURL(Long id)GET /imported-urls/:id: get the "id" importedURL.org.springframework.http.ResponseEntity<ImportedURL>updateImportedURL(@Valid ImportedURL importedURL)PUT /imported-urls: Updates an existing 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 URISyntaxExceptionPOST /imported-urls: Create a new importedURL.- Parameters:
importedURL- the importedURL to create.- Returns:
- the
ResponseEntitywith status201 (Created)and with body the new importedURL, or with status400 (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 URISyntaxExceptionPUT /imported-urls: Updates an existing importedURL.- Parameters:
importedURL- the importedURL to update.- Returns:
- the
ResponseEntitywith status200 (OK)and with body the updated importedURL, or with status400 (Bad Request)if the importedURL is not valid, or with status500 (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
ResponseEntitywith status200 (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
ResponseEntitywith status200 (OK)and with body the importedURL, or with status404 (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
ResponseEntitywith status204 (NO_CONTENT).
-
-