🎛️Parameters
Create dynamic APIs with parameters
Query Parameters
In a URL, a query parameter is a part of the query string and defined after the question mark (?
). Query parameters are used to pass additional information.
For example, in the URL https://www.example.com/search?query=example&page=2
the query parameters are 'query' and 'page', with values 'example' and '2', respectively.
Body Parameters
Body parameters can be used to send JSON data. Unlike query parameters, it's possible to define the data type of body parameters.
Body parameters are not available for GET
requests.
For example, in a POST
request which creates a new job listing, the body parameters might include the job's title, location, and salary.
Last updated