Package de.trustable.ca3s.core.web.rest
Class ACMEAccountResource
- java.lang.Object
-
- de.trustable.ca3s.core.web.rest.ACMEAccountResource
-
@RestController @RequestMapping("/api") public class ACMEAccountResource extends ObjectREST controller for managingACMEAccount.
-
-
Constructor Summary
Constructors Constructor Description ACMEAccountResource(ACMEAccountService aCMEAccountService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<ACMEAccount>createACMEAccount(@Valid ACMEAccount aCMEAccount)POST /acme-accounts: Create a new aCMEAccount.org.springframework.http.ResponseEntity<Void>deleteACMEAccount(Long id)DELETE /acme-accounts/:id: delete the "id" aCMEAccount.org.springframework.http.ResponseEntity<ACMEAccount>getACMEAccount(Long id)GET /acme-accounts/:id: get the "id" aCMEAccount.List<ACMEAccount>getAllACMEAccounts()GET /acme-accounts: get all the aCMEAccounts.org.springframework.http.ResponseEntity<ACMEAccount>updateACMEAccount(@Valid ACMEAccount aCMEAccount)PUT /acme-accounts: Updates an existing 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 URISyntaxExceptionPOST /acme-accounts: Create a new aCMEAccount.- Parameters:
aCMEAccount- the aCMEAccount to create.- Returns:
- the
ResponseEntitywith status201 (Created)and with body the new aCMEAccount, or with status400 (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 URISyntaxExceptionPUT /acme-accounts: Updates an existing aCMEAccount.- Parameters:
aCMEAccount- the aCMEAccount to update.- Returns:
- the
ResponseEntitywith status200 (OK)and with body the updated aCMEAccount, or with status400 (Bad Request)if the aCMEAccount is not valid, or with status500 (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
ResponseEntitywith status200 (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
ResponseEntitywith status200 (OK)and with body the aCMEAccount, or with status404 (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
ResponseEntitywith status204 (NO_CONTENT).
-
-