- It's a file system api, which can do CRUD operations.
- It's built on
REST
api architecture. - Below is the description table.
Don't forget to read the Note below :)
Format :
{HostedURL}/{endPointURL}
Task | Method/HTTP Verb | Path/ Endpoint URL |
---|---|---|
1. Upload a file ( as form data : key=file-upload & value={filetobeuploaded} ) |
POST | /files/upload |
2. Get list of all files | GET | /files |
3. Download a file | GET | /files/{filename} |
4. Update a file ( new file as form data ) | PUT | /files/update/{filename} |
5. Delete a file | DELETE | /files/delete/{filename} |
- File Size Limit is 5MB .
- In task 1, key must be named as "file-upload"
- Don't forget to clear the form data(uncheck key-value pair) while doing task 2, 3, and 5.
- In task 4, in
/files/update/{filename}
, {filename} is the name of file that is to be replaced with the new file.