Package de.trustable.ca3s.core.web.rest
Class AcmeOrderResource
- java.lang.Object
-
- de.trustable.ca3s.core.web.rest.AcmeOrderResource
-
-
Constructor Summary
Constructors Constructor Description AcmeOrderResource(AcmeOrderService acmeOrderService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<AcmeOrder>getAcmeOrder(Long id)GET /acme-orders/:id: get the "id" acmeOrder.List<AcmeOrder>getAllAcmeOrders()GET /acme-orders: get all the acmeOrders.
-
-
-
Constructor Detail
-
AcmeOrderResource
public AcmeOrderResource(AcmeOrderService acmeOrderService)
-
-
Method Detail
-
getAllAcmeOrders
@GetMapping("/acme-orders") @PreAuthorize("hasRole(\"ROLE_ADMIN\")") public List<AcmeOrder> getAllAcmeOrders()GET /acme-orders: get all the acmeOrders.- Returns:
- the
ResponseEntitywith status200 (OK)and the list of acmeOrders in body.
-
getAcmeOrder
@GetMapping("/acme-orders/{id}") @PreAuthorize("hasRole(\"ROLE_ADMIN\")") public org.springframework.http.ResponseEntity<AcmeOrder> getAcmeOrder(@PathVariable Long id)GET /acme-orders/:id: get the "id" acmeOrder.- Parameters:
id- the id of the acmeOrder to retrieve.- Returns:
- the
ResponseEntitywith status200 (OK)and with body the acmeOrder, or with status404 (Not Found).
-
-