File Downloads
In this lesson, we will look at how to download the response to a file using the Rest Assured library.
We'll cover the following
What is file download?
There are instances where we need to save the response body message as a file. In this example, we will make a GET
request that returns a JSON
string which will be saved as a file.
Example: Download JSON file
- HTTP method: GET
- Target URL:
http://ezifyautomationlabs.com:6565
- Resource path:
/educative-rest/students
Take a look at the code below:
Get hands-on with 1400+ tech skills courses.