-
Notifications
You must be signed in to change notification settings - Fork 151
Request Builder
Click on New Request in the request tree column of RESTFiddle.
Enter the request name, description and save to create a new request. The request gets created under the folder selected in request tree. If no folder has been selected, a new request will get saved at root level.
You can now start building this new request in the Request Builder section of RESTFiddle.
Now you can easily craft any request, no matter how complicated it is. Request builder is the rightmost section of RESTFiddle. Enter the fields required to run a particular request, select its type and run it. The response gets populated in the bottom part of the request builder. Response is displayed in three tabs- body, header and asserts.
You can add query params for any request by directly attaching them to url after question mark (?) symbol or by clicking on Add Query Param button and entering the key value. Example: We can sort the results fetched by adding value 1 or -1 to specify an ascending or descending sort respectively. So append ?sort={name:1} to url or add sort as key and {name:1} as value in Query Param.
Example of getting paginated results: Append ?page=1&limit=2 to request url or add 2 query params as page and limit.
Form params can be added to a POST request. Click on Form tab of request and add key value pairs of form params to be added.