Numeric Parameters
Numeric Parameters of API Data Source has two attributesĀ
Minimum Number
Maximum Number.
Minimum Number is to define the start number of records while flushing response from API request
Maximum Number is to define the maximum number of records in a given API request
Example 1 : In Oracle Netsuite REST API architecture the `Minimum Number` is 0 and `Maximum Number` is 1000 as it flushes 1000 records per request
Example 2 : In another API whose API response is like below where per page it is having 6 records. Here the `Minimum Number` is 1 and `Maximum Number` is 6
There are two reserved keywords to use the Minimum Number and Maximum Number. Those are min_num
and max_num
respectively. These keywords can be used in API params, headers, JSON body, pre-requiest script etc. of any API request call, wherever there is need to control the flow of API response
Example : GET https://example.com/api/users?page={%min_num%}&per_page={%max_num%}