API Monitoring with Postman
I will create a collection named CBM and add two requests. I will send GET request to the following API of Central Bank of Myanmar since those API are free and everyone can access.
First API is to retrieve all available currencies with their full names. And second API is to retrieve latest exchange rates of available currencies to Myanmar Kyats (MMK). This exchange rates are updated daily.
Fig 1: Get request to http://forex.cbm.gov.mm/api/currencies
Fig 2: Get request to http://forex.cbm.gov.mm/api/latest
You may try to send request and see the response from above 2 APIs.
Then I will make Monitor Collection.
Fig 3: Selecting Monitor Collection
Set Monitor name, Version tag, environment and monitor run frequency as you like. There is usage limit based on your Postman account. For Free user, you can call API 1000 times per month.
Fig 4: Configuration monitor name, version tag, etc
I will set Minute Timer to run every 5 minutes.
Fig 5: Configuration running frequency
After finish setting up, click Create button to start the monitor. You can check the result on the web dashboard.
Fig 6: Finishing configuration monitor collection
This is the web dashboard for Monitor. You may see the run frequency on the top left corner. And click Run button to start to see the result.
Fig 7: Monitor Dashboard
Fig 8: Monitor Performance Graph
Basically, you can see response time, request success or failed and schedule running time in monitor. And off course you can see the response data at the bottom of the page under console log tab.
Fig 9: Test result response data
You can also see for each request under “Request Split” tab.
Fig 10: Request Split
Enjoy!
Kommentare