Package de.trustable.ca3s.core.web.rest
Class AcmeAuthorizationResource
- java.lang.Object
-
- de.trustable.ca3s.core.web.rest.AcmeAuthorizationResource
-
@RestController @RequestMapping("/api") public class AcmeAuthorizationResource extends ObjectREST controller for managingAcmeAuthorization.
-
-
Constructor Summary
Constructors Constructor Description AcmeAuthorizationResource(AcmeAuthorizationService acmeAuthorizationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<AcmeAuthorization>createAcmeAuthorization(@Valid AcmeAuthorization acmeAuthorization)POST /acme-authorizations: Create a new acmeAuthorization.org.springframework.http.ResponseEntity<Void>deleteAcmeAuthorization(Long id)DELETE /acme-authorizations/:id: delete the "id" acmeAuthorization.org.springframework.http.ResponseEntity<AcmeAuthorization>getAcmeAuthorization(Long id)GET /acme-authorizations/:id: get the "id" acmeAuthorization.List<AcmeAuthorization>getAllAcmeAuthorizations()GET /acme-authorizations: get all the acmeAuthorizations.org.springframework.http.ResponseEntity<AcmeAuthorization>updateAcmeAuthorization(@Valid AcmeAuthorization acmeAuthorization)PUT /acme-authorizations: Updates an existing acmeAuthorization.
-
-
-
Constructor Detail
-
AcmeAuthorizationResource
public AcmeAuthorizationResource(AcmeAuthorizationService acmeAuthorizationService)
-
-
Method Detail
-
createAcmeAuthorization
@PostMapping("/acme-authorizations") public org.springframework.http.ResponseEntity<AcmeAuthorization> createAcmeAuthorization(@Valid @RequestBody @Valid AcmeAuthorization acmeAuthorization) throws URISyntaxExceptionPOST /acme-authorizations: Create a new acmeAuthorization.- Parameters:
acmeAuthorization- the acmeAuthorization to create.- Returns:
- the
ResponseEntitywith status201 (Created)and with body the new acmeAuthorization, or with status400 (Bad Request)if the acmeAuthorization has already an ID. - Throws:
URISyntaxException- if the Location URI syntax is incorrect.
-
updateAcmeAuthorization
@PutMapping("/acme-authorizations") public org.springframework.http.ResponseEntity<AcmeAuthorization> updateAcmeAuthorization(@Valid @RequestBody @Valid AcmeAuthorization acmeAuthorization) throws URISyntaxExceptionPUT /acme-authorizations: Updates an existing acmeAuthorization.- Parameters:
acmeAuthorization- the acmeAuthorization to update.- Returns:
- the
ResponseEntitywith status200 (OK)and with body the updated acmeAuthorization, or with status400 (Bad Request)if the acmeAuthorization is not valid, or with status500 (Internal Server Error)if the acmeAuthorization couldn't be updated. - Throws:
URISyntaxException- if the Location URI syntax is incorrect.
-
getAllAcmeAuthorizations
@GetMapping("/acme-authorizations") public List<AcmeAuthorization> getAllAcmeAuthorizations()GET /acme-authorizations: get all the acmeAuthorizations.- Returns:
- the
ResponseEntitywith status200 (OK)and the list of acmeAuthorizations in body.
-
getAcmeAuthorization
@GetMapping("/acme-authorizations/{id}") 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
ResponseEntitywith status200 (OK)and with body the acmeAuthorization, or with status404 (Not Found).
-
deleteAcmeAuthorization
@DeleteMapping("/acme-authorizations/{id}") 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
ResponseEntitywith status204 (NO_CONTENT).
-
-