File Uploads
In this lesson, we will see how to handle file uploads using Rest Assured.
We'll cover the following...
We'll cover the following...
What is file upload?
There are use cases where you need to send a file in the message body with a POST or PUT request.
In the example below, we will see a POST request that takes a file stream as an input and creates a list of Student.
Example: Upload a JSON file to create a list of studentm
- HTTP Method: POST
- Target URL:
http://ezifyautomationlabs.com:6565 - Resource path:
/educative-rest/students/upload - Message body: