Add files via upload

This commit is contained in:
gopi17701 2018-07-31 15:57:21 -04:00 committed by GitHub
parent 1f6c1c4d57
commit 8f2168f47e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,14 +21,14 @@ public class CustomerResource {
}
@GET
public Response getCustomers(@QueryParam("customerId") int customerId)
public Response getCustomers(@QueryParam("customerId") String customerId)
throws AstuteException {
return new ApiResponse(service.getCustomers(customerId)).toResponse();
}
@Path("/{customerId}")
@PUT
public Response updateCustomer(@PathParam("customerId") int customerId, CustomerRequest request)
public Response updateCustomer(@PathParam("customerId") String customerId, CustomerRequest request)
throws AstuteException {
System.out.println("in updateCustomer()");
service.updateCustomer(customerId, request.getCustomerName(), request.getBillToDept(), request.getAdd1(),
@ -40,7 +40,7 @@ public class CustomerResource {
public Response createCustomer(CustomerRequest request)
throws AstuteException {
System.out.println("in AstuteSyste createCustomer()");
return new ApiResponse(service.createCustomer(request.getCustomerName(), request.getBillToDept(), request.getAdd1(),
return new ApiResponse(service.createCustomer(request.getCustomerId(), request.getCustomerName(), request.getBillToDept(), request.getAdd1(),
request.getAdd2(), request.getCity(), request.getState(), request.getZip(), request.getZiplast4(), request.getEmail(), request.getPhone(), request.getFax())).toResponse();
}
}