Introduction:
The purpose of this document is to demonstrate how we pass multiple set of parameters in REST API through Postman.
Cause of the issue:
Whenever we test any REST API, it is containing only resource path that give many results in response, but some time we require only specific results not all information.
How do we solve:
To overcome this situation, we need to pass parameter called template parameter, where we passed multiple parameters after the resource path of the REST API and get specific details in the response.
Scenario
Getting the invoice details with below REST API URI
https://<POD>/fscmRestApi/resources/11.13.18.05/invoices
along with need only some sort of columns with filter (no hyperlink) data and 20 invoices data at a time.
Final REST API URI are as below to get the information,
https://<POD>/fscmRestApi/resources/11.13.18.05/invoices?limit=20&onlyData=true&fields=InvoiceNumber,InvoiceAmount,InvoiceDate,BusinessUnit,InvoiceDate,Supplier