java.lang.Object
org.wso2.am.integration.services.jaxrs.customersample.CustomerService

@Path("/customerservice/") public class CustomerService extends Object
  • Constructor Details

    • CustomerService

      public CustomerService()
  • Method Details

    • getCustomer

      @GET @Path("/customers/{id}/") public Customer getCustomer(@PathParam("id") String id)
    • updateCustomer

      @PUT @Path("/customers/") public javax.ws.rs.core.Response updateCustomer(Customer customer)
    • addCustomer

      @POST @Path("/customers/") public javax.ws.rs.core.Response addCustomer(Customer customer)
    • getCustomerName

      @POST @Path("/customers/name/") @Consumes("text/plain") @Produces("text/plain") public String getCustomerName(String id)
    • deleteCustomer

      @DELETE @Path("/customers/{id}/") public javax.ws.rs.core.Response deleteCustomer(@PathParam("id") String id)
    • getOrder

      @Path("/orders/{orderId}/") public Order getOrder(@PathParam("orderId") String orderId)