Class AcmeChallengeResource


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

      • AcmeChallengeResource

        public AcmeChallengeResource​(AcmeChallengeService acmeChallengeService)
    • Method Detail

      • createAcmeChallenge

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

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

        @GetMapping("/acme-challenges")
        public List<AcmeChallenge> getAllAcmeChallenges()
        GET /acme-challenges : get all the acmeChallenges.
        Returns:
        the ResponseEntity with status 200 (OK) and the list of acmeChallenges in body.
      • getAcmeChallenge

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

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