Class ACMEAccountResource


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

      • ACMEAccountResource

        public ACMEAccountResource​(ACMEAccountService aCMEAccountService)
    • Method Detail

      • createACMEAccount

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

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

        @GetMapping("/acme-accounts")
        public List<ACMEAccount> getAllACMEAccounts()
        GET /acme-accounts : get all the aCMEAccounts.
        Returns:
        the ResponseEntity with status 200 (OK) and the list of aCMEAccounts in body.
      • getACMEAccount

        @GetMapping("/acme-accounts/{id}")
        public org.springframework.http.ResponseEntity<ACMEAccount> getACMEAccount​(@PathVariable
                                                                                   Long id)
        GET /acme-accounts/:id : get the "id" aCMEAccount.
        Parameters:
        id - the id of the aCMEAccount to retrieve.
        Returns:
        the ResponseEntity with status 200 (OK) and with body the aCMEAccount, or with status 404 (Not Found).
      • deleteACMEAccount

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