Class AcmeNonceResource


  • @RestController
    @RequestMapping("/api")
    public class AcmeNonceResource
    extends Object
    REST controller for managing 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 URISyntaxException
        POST /acme-nonces : Create a new acmeNonce.
        Parameters:
        acmeNonce - the acmeNonce to create.
        Returns:
        the ResponseEntity with status 201 (Created) and with body the new acmeNonce, or with status 400 (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 URISyntaxException
        PUT /acme-nonces : Updates an existing acmeNonce.
        Parameters:
        acmeNonce - the acmeNonce to update.
        Returns:
        the ResponseEntity with status 200 (OK) and with body the updated acmeNonce, or with status 400 (Bad Request) if the acmeNonce is not valid, or with status 500 (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 ResponseEntity with status 200 (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 ResponseEntity with status 200 (OK) and with body the acmeNonce, or with status 404 (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 ResponseEntity with status 204 (NO_CONTENT).