Skip to content

Developer deep dive into Http API

keithwoodlock edited this page May 8, 2012 · 15 revisions

Developer deep dive into Http API

Jersey setup

In mifosx we use Jersey and its support for integration with spring. see https://wikis.oracle.com/display/Jersey/Main

In the mifosngprovider/src/main/webapp/WEB-INF/web.xml you will see configuration for a servlet named jersey-serlvet that is mapped to /api/*. This allows for all requests that begin with /api to be routed through Jersey e.g. https://localhost:8085/mifosng-provider/api/v1/loanproducts

The support for com.sun.jersey.spi.spring.container.servlet.SpringServlet class used comes from Jerseys spring-integration project. See mifosngprovider/build.gradle for the dependencies.