Package org.wso2.msf4j.example.service
Class InvoiceService
- java.lang.Object
-
- org.wso2.msf4j.example.service.InvoiceService
-
@Path("/invoice") public class InvoiceService extends java.lang.ObjectCustomerService resource class.
-
-
Constructor Summary
Constructors Constructor Description InvoiceService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsegetCustomer(java.lang.String id)Retrieves an invoice record for a given invoice ID.
-
-
-
Method Detail
-
getCustomer
@GET @Path("/{id}") @Produces("application/json") public javax.ws.rs.core.Response getCustomer(@PathParam("id") java.lang.String id) throws InvoiceNotFoundExceptionRetrieves an invoice record for a given invoice ID. http://localhost:8080/invoice/I001- Parameters:
id- Invoice ID will be taken from the path parameter.- Returns:
- Throws:
InvoiceNotFoundException
-
-