Class CustomerService


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

      • CustomerService

        public CustomerService()
    • Method Detail

      • 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)