Package de.trustable.ca3s.core.web.rest
Class RDNResource
- java.lang.Object
-
- de.trustable.ca3s.core.web.rest.RDNResource
-
-
Constructor Summary
Constructors Constructor Description RDNResource(RDNService rDNService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<RDN>createRDN(RDN rDN)POST /rdns: Create a new rDN.org.springframework.http.ResponseEntity<Void>deleteRDN(Long id)DELETE /rdns/:id: delete the "id" rDN.List<RDN>getAllRDNS()GET /rdns: get all the rDNS.org.springframework.http.ResponseEntity<RDN>getRDN(Long id)GET /rdns/:id: get the "id" rDN.org.springframework.http.ResponseEntity<RDN>updateRDN(RDN rDN)PUT /rdns: Updates an existing rDN.
-
-
-
Constructor Detail
-
RDNResource
public RDNResource(RDNService rDNService)
-
-
Method Detail
-
createRDN
@PostMapping("/rdns") public org.springframework.http.ResponseEntity<RDN> createRDN(@RequestBody RDN rDN) throws URISyntaxExceptionPOST /rdns: Create a new rDN.- Parameters:
rDN- the rDN to create.- Returns:
- the
ResponseEntitywith status201 (Created)and with body the new rDN, or with status400 (Bad Request)if the rDN has already an ID. - Throws:
URISyntaxException- if the Location URI syntax is incorrect.
-
updateRDN
@PutMapping("/rdns") public org.springframework.http.ResponseEntity<RDN> updateRDN(@RequestBody RDN rDN) throws URISyntaxExceptionPUT /rdns: Updates an existing rDN.- Parameters:
rDN- the rDN to update.- Returns:
- the
ResponseEntitywith status200 (OK)and with body the updated rDN, or with status400 (Bad Request)if the rDN is not valid, or with status500 (Internal Server Error)if the rDN couldn't be updated. - Throws:
URISyntaxException- if the Location URI syntax is incorrect.
-
getAllRDNS
@GetMapping("/rdns") public List<RDN> getAllRDNS()GET /rdns: get all the rDNS.- Returns:
- the
ResponseEntitywith status200 (OK)and the list of rDNS in body.
-
getRDN
@GetMapping("/rdns/{id}") public org.springframework.http.ResponseEntity<RDN> getRDN(@PathVariable Long id)GET /rdns/:id: get the "id" rDN.- Parameters:
id- the id of the rDN to retrieve.- Returns:
- the
ResponseEntitywith status200 (OK)and with body the rDN, or with status404 (Not Found).
-
-