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