Package de.trustable.ca3s.core.web.rest
Class ScepOrderViewResource
- java.lang.Object
-
- de.trustable.ca3s.core.web.rest.ScepOrderViewResource
-
-
Constructor Summary
Constructors Constructor Description ScepOrderViewResource(ScepOrderService scepOrderService, ScepOrderUtil scepOrderUtil)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ScepOrderView>getAllAcmeOrderViews()GET /scepOrderViews: get all ACME orders.org.springframework.http.ResponseEntity<ScepOrderView>getscepOrder(Long id)GET /scepOrderViews/:id: get the "id" ACME order.
-
-
-
Constructor Detail
-
ScepOrderViewResource
public ScepOrderViewResource(ScepOrderService scepOrderService, ScepOrderUtil scepOrderUtil)
-
-
Method Detail
-
getAllAcmeOrderViews
@GetMapping("/scepOrderViews") @PreAuthorize("hasRole(\"ROLE_ADMIN\")") public List<ScepOrderView> getAllAcmeOrderViews()GET /scepOrderViews: get all ACME orders.- Returns:
- the
ResponseEntitywith status200 (OK)and the list of ACME accounts in body.
-
getscepOrder
@GetMapping("/scepOrderViews/{id}") public org.springframework.http.ResponseEntity<ScepOrderView> getscepOrder(@PathVariable Long id)GET /scepOrderViews/:id: get the "id" ACME order.- Parameters:
id- the id of the ACME account to retrieve.- Returns:
- the
ResponseEntitywith status200 (OK)and with body the ACME account, or with status404 (Not Found).
-
-