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