Class AcmeAuthorizationResource


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

    • Method Detail

      • createAcmeAuthorization

        @PostMapping("/acme-authorizations")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        public org.springframework.http.ResponseEntity<AcmeAuthorization> createAcmeAuthorization​(@Valid @RequestBody
                                                                                                  @Valid AcmeAuthorization acmeAuthorization)
                                                                                           throws URISyntaxException
        POST /acme-authorizations : Create a new acmeAuthorization.
        Parameters:
        acmeAuthorization - the acmeAuthorization to create.
        Returns:
        the ResponseEntity with status 201 (Created) and with body the new acmeAuthorization, or with status 400 (Bad Request) if the acmeAuthorization has already an ID.
        Throws:
        URISyntaxException - if the Location URI syntax is incorrect.
      • updateAcmeAuthorization

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

        @GetMapping("/acme-authorizations")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        public List<AcmeAuthorization> getAllAcmeAuthorizations()
        GET /acme-authorizations : get all the acmeAuthorizations.
        Returns:
        the ResponseEntity with status 200 (OK) and the list of acmeAuthorizations in body.
      • getAcmeAuthorization

        @GetMapping("/acme-authorizations/{id}")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        public org.springframework.http.ResponseEntity<AcmeAuthorization> getAcmeAuthorization​(@PathVariable
                                                                                               Long id)
        GET /acme-authorizations/:id : get the "id" acmeAuthorization.
        Parameters:
        id - the id of the acmeAuthorization to retrieve.
        Returns:
        the ResponseEntity with status 200 (OK) and with body the acmeAuthorization, or with status 404 (Not Found).
      • deleteAcmeAuthorization

        @DeleteMapping("/acme-authorizations/{id}")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        public org.springframework.http.ResponseEntity<Void> deleteAcmeAuthorization​(@PathVariable
                                                                                     Long id)
        DELETE /acme-authorizations/:id : delete the "id" acmeAuthorization.
        Parameters:
        id - the id of the acmeAuthorization to delete.
        Returns:
        the ResponseEntity with status 204 (NO_CONTENT).