Class AcmeIdentifierResource


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

    • Method Detail

      • createAcmeIdentifier

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

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

        @GetMapping("/acme-identifiers")
        public List<AcmeIdentifier> getAllAcmeIdentifiers()
        GET /acme-identifiers : get all the acmeIdentifiers.
        Returns:
        the ResponseEntity with status 200 (OK) and the list of acmeIdentifiers in body.
      • getAcmeIdentifier

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

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