API Contracts on Django REST API

Curl Request to verify API Contracts, on Django REST Framework Request a particular file API Contracts domain/files/(id) : Fetch the specified file for download curl example: sys2@sys2-HP-Compaq-8100-Elite-SFF-PC:~$ curl –user vidya:root@123 http://127.0.0.1:8000/files/26/ {“url”:”http://127.0.0.1:8000/files/26/”,”file”:”http://127.0.0.1:8000/uploads/uploads/file1.csv”} browser example: http://127.0.0.1:8000/files/26/ domain/files : Displays a list of files uploaded curl example: sys2@sys2-HP-Compaq-8100-Elite-SFF-PC:~$ curl –user vidya:roo.0.1:8000/files/ {“count”:2,”next”:null,”previous”:null,”results”:[{“url”:”http://127.0.0.1:8000/files/26/”,”file”:”http://127.0.0.1:8000/uploads/uploads/file1.csv”},{“url”:”http://127.0.0.1:8000/files/28/”,”file”:”http://127.0.0.1:8000/uploads/uploads/file2.csv”}]} browser example: http://127.0.0.1:8000/files/ POST A…