@Path(value="/customerservice/") public class CustomerService extends Object
| Constructor and Description |
|---|
CustomerService() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addCustomer(Customer customer) |
javax.ws.rs.core.Response |
deleteCustomer(String id) |
Customer |
getCustomer(String id) |
String |
getCustomerName(String id) |
Order |
getOrder(String orderId) |
javax.ws.rs.core.Response |
updateCustomer(Customer customer) |
@GET
@Path(value="/customers/{id}/")
public Customer getCustomer(@PathParam(value="id")
String id)
@PUT @Path(value="/customers/") public javax.ws.rs.core.Response updateCustomer(Customer customer)
@POST @Path(value="/customers/") public javax.ws.rs.core.Response addCustomer(Customer customer)
@POST @Path(value="/customers/name/") @Consumes(value="text/plain") @Produces(value="text/plain") public String getCustomerName(String id)
@DELETE
@Path(value="/customers/{id}/")
public javax.ws.rs.core.Response deleteCustomer(@PathParam(value="id")
String id)
Copyright © 2021 WSO2 Inc. All rights reserved.