mirror of
https://github.com/dyiop/astute.git
synced 2025-04-06 21:30:20 -04:00
Add files via upload
This commit is contained in:
parent
f5d966783b
commit
3c9484eb9c
|
@ -26,6 +26,13 @@ public class CustomerResource {
|
||||||
return new ApiResponse(service.getCustomers(customerId)).toResponse();
|
return new ApiResponse(service.getCustomers(customerId)).toResponse();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Path("/{poNumber}")
|
||||||
|
@GET
|
||||||
|
public Response getCustomer(@PathParam("poNumber") String poNumber)
|
||||||
|
throws AstuteException {
|
||||||
|
return new ApiResponse(service.getCustomer(poNumber)).toResponse();
|
||||||
|
}
|
||||||
|
|
||||||
@Path("/{customerId}")
|
@Path("/{customerId}")
|
||||||
@PUT
|
@PUT
|
||||||
public Response updateCustomer(@PathParam("customerId") String customerId, CustomerRequest request)
|
public Response updateCustomer(@PathParam("customerId") String customerId, CustomerRequest request)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user