Test Mifos API in Postman - openMF/mifos-mobile GitHub Wiki

#Test Mifos API in Postman

The assumption here is that you have Postman installed. Other such REST clients can be used also.

1. Open up postman : You should see a similar screen like the one below

images/home.png

2. Select Authorization in the tab menu immediately below the input field

images/auth.png

3. Select Basic Authentication :You should now see input fields for username and password

4. Enter the username and password (Look SideBar for Latest Demo Credentials)

images/basic.png

Click on update request at the far right corner

images/update.png

5. You should now see a similar screen in the Headers tab

images/header.png

Fill out the other headers as show below:

images/headers.png

6. Select your HTTP method. In this case we use GET

images/method.png

7. Fill out the URL as seen in the documentation. In this case https://demo.openmf.org/fineract-provider/api/v1/clients

images/url.png

8. Press Enter or click the SEND button at the far right corner

This should now make such a request and the response will be presented in the text area below(see screenshot):

images/response.png

9. In event of a POST request

  • Select POST in the drop down at the left corner of the input field
  • Fill out the required url. In this case https://demo.openmf.org/fineract-provider/api/v1/clients
  • Click on body in the tabbed menu.
  • Select the format you want to enter your data in. In this case we use raw images/body.png
  • Enter your body data as shown images/body_data.png
  • Click enter
  • Your response should be presented in the text area below.