{"info":{"_postman_id":"c0dd669a-7971-437d-be02-e8ec824f1a95","name":"Resource API","description":"<html><head></head><body><h1 id=\"introduction\">Introduction</h1>\n<p>Resource API provides APIs on resource management for Chainstack</p>\n<h1 id=\"overview\">Overview</h1>\n<p>Things that the developers should know about</p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>Resource API utilises Django Rest Framework Token Authentication. \nLogin to with valid username and password to get an API key.</p>\n<p>For every API request, you need to pass the request header with <code>Authorization: Token &lt;api key&gt;</code></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Introduction","slug":"introduction"},{"content":"Overview","slug":"overview"},{"content":"Authentication","slug":"authentication"}],"owner":"2656075","collectionId":"c0dd669a-7971-437d-be02-e8ec824f1a95","publishedId":"SVtbQ57m","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-10-20T04:40:40.000Z"},"item":[{"name":"User Register","id":"45e41a22-402f-42b1-8202-1abc8a79d7fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token fde912f58444248d768dab3386533c50695133d6","type":"text"}],"body":{"mode":"formdata","formdata":[{"description":"<p>User's username</p>\n","key":"username","type":"text","value":"newuser","contentType":""},{"description":"<p>User's password</p>\n","key":"password","type":"text","value":"newpassword123"},{"description":"<p>User's email</p>\n","key":"email","type":"text","value":"newuser@gmail.com"}]},"url":"http://localhost:8000/api/users/register/","description":"<p>Allows users to create a user account.</p>\n<p>Only an admin user can create a new user.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","users","register",""],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"6e1e7a62-b050-46a0-b452-681d643790e2","name":"User Register","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Token fde912f58444248d768dab3386533c50695133d6","type":"text"}],"body":{"mode":"formdata","formdata":[{"description":"User's username","key":"username","type":"text","value":"newuser","contentType":""},{"description":"User's password","key":"password","type":"text","value":"newpassword123"},{"description":"User's email","key":"email","type":"text","value":"newuser@gmail.com"}]},"url":"http://localhost:8000/api/users/register/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 20 Oct 2019 14:37:31 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.3"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept"},{"key":"Allow","value":"OPTIONS, POST"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"81"}],"cookie":[],"responseTime":null,"body":"{\n    \"username\": \"newuser\",\n    \"email\": \"newuser@gmail.com\",\n    \"first_name\": \"\",\n    \"last_name\": \"\"\n}"}],"_postman_id":"45e41a22-402f-42b1-8202-1abc8a79d7fe"},{"name":"Login","id":"b35c6724-1375-4224-8a3f-ede205f26430","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"beneditatan@gmail.com","description":"<p>User's email</p>\n","type":"text"},{"key":"password","value":"admin123","description":"<p>User's password</p>\n","type":"text"}]},"url":"http://localhost:8000/api/users/login/","description":"<p>Allows users to authenticate themselves and obtain API key.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","users","login",""],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"2de3253e-a6eb-4b3d-926f-c6313cdd1231","name":"Login","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"beneditatan@gmail.com","description":"User's email","type":"text"},{"key":"password","value":"admin123","description":"User's password","type":"text"}]},"url":"http://localhost:8000/api/users/login/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 20 Oct 2019 06:58:25 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.3"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie"},{"key":"Allow","value":"OPTIONS, POST"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"99"}],"cookie":[],"responseTime":null,"body":"{\n    \"key\": \"fde912f58444248d768dab3386533c50695133d6\",\n    \"created\": \"2019-10-18T15:01:40.236754Z\",\n    \"user\": 1\n}"}],"_postman_id":"b35c6724-1375-4224-8a3f-ede205f26430"},{"name":"Retrieve User List","id":"c9217b83-00d6-4841-abda-c843182c43aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"description":"<p>API key obtained upon login</p>\n","key":"Authorization","type":"text","value":"Token fde912f58444248d768dab3386533c50695133d6"}],"url":"http://localhost:8000/api/users/","description":"<p>Returns a list of all users.</p>\n<p>This API can only be requested by admin user.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","users",""],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"5705f1d9-3fda-4072-a835-39ca9b6bd511","name":"Retrieve User List","originalRequest":{"method":"GET","header":[{"description":"API key obtained upon login","key":"Authorization","type":"text","value":"Token fde912f58444248d768dab3386533c50695133d6"}],"url":"http://localhost:8000/api/users/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 20 Oct 2019 07:02:22 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.3"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept"},{"key":"Allow","value":"GET, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"429"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"username\": \"beneditatan\",\n        \"email\": \"beneditatan@gmail.com\",\n        \"first_name\": \"\",\n        \"last_name\": \"\"\n    },\n    {\n        \"username\": \"samuelthng\",\n        \"email\": \"samuel@thng.sg\",\n        \"first_name\": \"\",\n        \"last_name\": \"\"\n    },\n    {\n        \"username\": \"giojessica\",\n        \"email\": \"giojessica@gmail.com\",\n        \"first_name\": \"\",\n        \"last_name\": \"\"\n    },\n    {\n        \"username\": \"ezzatan\",\n        \"email\": \"ezzatan@gmail.com\",\n        \"first_name\": \"\",\n        \"last_name\": \"\"\n    },\n    {\n        \"username\": \"ariskondo\",\n        \"email\": \"ariskondo@gmail.com\",\n        \"first_name\": \"\",\n        \"last_name\": \"\"\n    }\n]"}],"_postman_id":"c9217b83-00d6-4841-abda-c843182c43aa"},{"name":"Retrieve User Details","id":"6dcb1712-04aa-4cdb-b934-43293f7cc99b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"description":"<p>API key obtained upon login</p>\n","key":"Authorization","type":"text","value":"Token fde912f58444248d768dab3386533c50695133d6"}],"url":"http://localhost:8000/api/users/details/:username/","description":"<p>Returns the information of the user given in the URL.</p>\n<p>User can only retrieve their own information.</p>\n<p>Admin user can retrieve anyone's information.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","users","details",":username",""],"host":["localhost"],"query":[],"variable":[{"description":{"content":"<p>Username of the inquired user</p>\n","type":"text/plain"},"type":"string","value":"beneditatan","key":"username"}]}},"response":[{"id":"8223c4bf-7e2c-4fce-be05-e22c3f123639","name":"Retrieve User Details","originalRequest":{"method":"GET","header":[{"description":"API key obtained upon login","key":"Authorization","type":"text","value":"Token fde912f58444248d768dab3386533c50695133d6"}],"url":{"raw":"http://localhost:8000/api/users/details/:username/","protocol":"http","host":["localhost"],"port":"8000","path":["api","users","details",":username",""],"variable":[{"key":"username","value":"beneditatan","description":"Username of the inquired user"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 20 Oct 2019 07:03:20 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.3"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept"},{"key":"Allow","value":"GET, PATCH, OPTIONS, DELETE"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"89"}],"cookie":[],"responseTime":null,"body":"{\n    \"username\": \"beneditatan\",\n    \"email\": \"beneditatan@gmail.com\",\n    \"first_name\": \"\",\n    \"last_name\": \"\"\n}"}],"_postman_id":"6dcb1712-04aa-4cdb-b934-43293f7cc99b"},{"name":"Update User Details","id":"fbddda32-33bd-4dcd-9d73-75892cae9d4f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"Token fde912f58444248d768dab3386533c50695133d6","description":"<p>API key obtained upon login</p>\n","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"last_name","value":"Benedita","description":"<p>User's last name (optional)</p>\n","type":"text"},{"key":"first_name","value":"Tanabi","description":"<p>User's first name (optional)</p>\n","type":"text"}]},"url":"http://localhost:8000/api/users/details/:username/","description":"<p>Updates user properties except password.</p>\n<p>User can only update their own information.</p>\n<p>Admin user can update anyone's information.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","users","details",":username",""],"host":["localhost"],"query":[],"variable":[{"description":{"content":"<p>Username of the inquired user</p>\n","type":"text/plain"},"type":"string","value":"beneditatan","key":"username"}]}},"response":[{"id":"83e34406-8ba1-4142-a3f9-381831b9aadd","name":"Update User Details","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Token fde912f58444248d768dab3386533c50695133d6","description":"API key obtained upon login","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"last_name","value":"Benedita","description":"User's last name (optional)","type":"text"},{"key":"first_name","value":"Tanabi","description":"User's first name (optional)","type":"text"}]},"url":{"raw":"http://localhost:8000/api/users/details/:username/","protocol":"http","host":["localhost"],"port":"8000","path":["api","users","details",":username",""],"variable":[{"key":"username","value":"beneditatan","description":"Username of the inquired user"}]}},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 20 Oct 2019 07:05:55 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.3"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept"},{"key":"Allow","value":"GET, PATCH, OPTIONS, DELETE"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"103"}],"cookie":[],"responseTime":null,"body":"{\n    \"username\": \"beneditatan\",\n    \"email\": \"beneditatan@gmail.com\",\n    \"first_name\": \"Tanabi\",\n    \"last_name\": \"Benedita\"\n}"}],"_postman_id":"fbddda32-33bd-4dcd-9d73-75892cae9d4f"},{"name":"Delete User","event":[{"listen":"prerequest","script":{"id":"f9bc4ad4-d9fc-407e-aef9-bcd7d7337009","exec":[""],"type":"text/javascript"}}],"id":"8ad3aeb7-5051-4735-b0ae-85840f73a34f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"description":"<p>API key obtained upon login</p>\n","key":"Authorization","type":"text","value":"Token fde912f58444248d768dab3386533c50695133d6"}],"url":"http://localhost:8000/api/users/details/:username/","description":"<p>Deletes a user account specified in URL.</p>\n<p>This API can only be accessed by admin user.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","users","details",":username",""],"host":["localhost"],"query":[],"variable":[{"description":{"content":"<p>Username of the inquired user</p>\n","type":"text/plain"},"type":"string","value":"newuser","key":"username"}]}},"response":[{"id":"5f1a86eb-278f-4d1c-940d-4e515dc4e84e","name":"Delete User","originalRequest":{"method":"DELETE","header":[{"description":"API key obtained upon login","key":"Authorization","type":"text","value":"Token fde912f58444248d768dab3386533c50695133d6"}],"url":{"raw":"http://localhost:8000/api/users/details/:username/","protocol":"http","host":["localhost"],"port":"8000","path":["api","users","details",":username",""],"variable":[{"key":"username","value":"newuser","description":"Username of the inquired user"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 20 Oct 2019 14:45:26 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.3"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept"},{"key":"Allow","value":"PATCH, DELETE, OPTIONS, GET"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"2"}],"cookie":[],"responseTime":null,"body":"{}"},{"id":"849cb3f7-91c2-470b-9048-eb8c36727b76","name":"Delete User","originalRequest":{"method":"DELETE","header":[{"description":"API key obtained upon login","key":"Authorization","type":"text","value":"Token fde912f58444248d768dab3386533c50695133d6"}],"url":{"raw":"http://localhost:8000/api/users/details/:username/","protocol":"http","host":["localhost"],"port":"8000","path":["api","users","details",":username",""],"variable":[{"key":"username","value":"newuser","description":"Username of the inquired user"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 20 Oct 2019 14:45:26 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.3"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept"},{"key":"Allow","value":"PATCH, DELETE, OPTIONS, GET"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"2"}],"cookie":[],"responseTime":null,"body":"{}"}],"_postman_id":"8ad3aeb7-5051-4735-b0ae-85840f73a34f"},{"name":"Get All Resources","id":"09c85deb-f189-4fc9-9dc7-ecba1eea1bcf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Token fde912f58444248d768dab3386533c50695133d6","description":"<p>API key obtained upon login</p>\n","type":"text"}],"url":"http://localhost:8000/api/resources/","description":"<p>Returns all resources created by all users.</p>\n<p>This API can only be accessed by admin user.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","resources",""],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"392ec667-fb12-48e4-8c6a-8d33f3d6210c","name":"Get All Resources","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Token fde912f58444248d768dab3386533c50695133d6","description":"API key obtained upon login","type":"text"}],"url":"http://localhost:8000/api/resources/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 20 Oct 2019 15:15:47 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.3"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"400"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 3,\n        \"creator\": \"giojessica\",\n        \"creation_date\": \"2019-10-19T13:20:22.132551Z\",\n        \"content\": \"hiiii\"\n    },\n    {\n        \"id\": 5,\n        \"creator\": \"beneditatan\",\n        \"creation_date\": \"2019-10-19T14:02:34.051468Z\",\n        \"content\": \"tesssst\"\n    },\n    {\n        \"id\": 6,\n        \"creator\": \"beneditatan\",\n        \"creation_date\": \"2019-10-19T14:17:00.015874Z\",\n        \"content\": \"again changed\"\n    },\n    {\n        \"id\": 8,\n        \"creator\": \"beneditatan\",\n        \"creation_date\": \"2019-10-20T14:53:59.963304Z\",\n        \"content\": \"postman\"\n    }\n]"}],"_postman_id":"09c85deb-f189-4fc9-9dc7-ecba1eea1bcf"},{"name":"Get Resource List By User","id":"e1b6aab7-2ddf-4836-a39d-5381858f73ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"description":"<p>API key obtained upon login</p>\n","key":"Authorization","type":"text","value":"Token fde912f58444248d768dab3386533c50695133d6"}],"url":"http://localhost:8000/api/resources/list/:username/","description":"<p>Returns all the resources owned by the user specified in the URL.</p>\n<p>User can only access the resources they created/owned.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","resources","list",":username",""],"host":["localhost"],"query":[],"variable":[{"description":{"content":"<p>(string) Resource owner</p>\n","type":"text/plain"},"type":"string","value":"beneditatan","key":"username"}]}},"response":[{"id":"75ce1c20-1bd5-4cd3-9453-ab456dbd43a2","name":"Get Resource List","originalRequest":{"method":"GET","header":[{"description":"API key obtained upon login","key":"Authorization","type":"text","value":"Token fde912f58444248d768dab3386533c50695133d6"}],"url":{"raw":"http://localhost:8000/api/resources/list/:username/","protocol":"http","host":["localhost"],"port":"8000","path":["api","resources","list",":username",""],"variable":[{"key":"username","value":"beneditatan","description":"(string) Resource owner"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 20 Oct 2019 14:46:12 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.3"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"277"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 2,\n        \"creation_date\": \"2019-10-19T13:10:39.303551Z\",\n        \"content\": \"another resource\",\n        \"creator\": 1\n    },\n    {\n        \"id\": 5,\n        \"creation_date\": \"2019-10-19T14:02:34.051468Z\",\n        \"content\": \"tesssst\",\n        \"creator\": 1\n    },\n    {\n        \"id\": 6,\n        \"creation_date\": \"2019-10-19T14:17:00.015874Z\",\n        \"content\": \"again changed\",\n        \"creator\": 1\n    }\n]"}],"_postman_id":"e1b6aab7-2ddf-4836-a39d-5381858f73ea"},{"name":"Get Resource Detail","id":"65717b42-27cb-466b-b51b-6a5f8f70d917","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Token fde912f58444248d768dab3386533c50695133d6","description":"<p>API key obtained upon login</p>\n","type":"text"}],"url":"http://localhost:8000/api/resources/:resource_id/","description":"<p>Returns resource countent given the resource id in the URL.</p>\n<p>User can only retrieve the resource they created/owned.</p>\n<p>Admin user can retrieve any resource regardless of the owner.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","resources",":resource_id",""],"host":["localhost"],"query":[],"variable":[{"description":{"content":"<p>Resource Primary Key</p>\n","type":"text/plain"},"type":"string","value":"2","key":"resource_id"}]}},"response":[{"id":"c3e494a1-86ba-4ad2-ad0c-7818d9ff55cc","name":"Get Resource Detail","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Token fde912f58444248d768dab3386533c50695133d6","description":"API key obtained upon login","type":"text"}],"url":{"raw":"http://localhost:8000/api/resources/:resource_id/","protocol":"http","host":["localhost"],"port":"8000","path":["api","resources",":resource_id",""],"variable":[{"key":"resource_id","value":"2","description":"Resource Primary Key"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 20 Oct 2019 14:48:55 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.3"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept"},{"key":"Allow","value":"DELETE, OPTIONS, GET"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"95"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 2,\n    \"creation_date\": \"2019-10-19T13:10:39.303551Z\",\n    \"content\": \"another resource\",\n    \"creator\": 1\n}"}],"_postman_id":"65717b42-27cb-466b-b51b-6a5f8f70d917"},{"name":"Delete Resource","id":"959eb636-93e2-414d-bbf6-3a22134b5ea5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"description":"<p>API key obtained upon login</p>\n","key":"Authorization","type":"text","value":"Token fde912f58444248d768dab3386533c50695133d6"}],"url":"http://localhost:8000/api/resources/:resource_id/","description":"<p>Deletes a resource specified by its resource id given in the URL.</p>\n<p>User can only deletes the resource they created.</p>\n<p>Admin user can deletes any resource regardless of the owner.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","resources",":resource_id",""],"host":["localhost"],"query":[],"variable":[{"description":{"content":"<p>Resource primary key</p>\n","type":"text/plain"},"type":"string","value":"2","key":"resource_id"}]}},"response":[{"id":"d037704d-f87f-4611-89df-66e5399d5d9a","name":"Delete Resource","originalRequest":{"method":"DELETE","header":[{"description":"API key obtained upon login","key":"Authorization","type":"text","value":"Token fde912f58444248d768dab3386533c50695133d6"}],"url":{"raw":"http://localhost:8000/api/resources/:resource_id/","protocol":"http","host":["localhost"],"port":"8000","path":["api","resources",":resource_id",""],"variable":[{"key":"resource_id","value":"2","description":"Resource primary key"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 20 Oct 2019 14:51:10 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.3"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept"},{"key":"Allow","value":"DELETE, OPTIONS, GET"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"2"}],"cookie":[],"responseTime":null,"body":"{}"}],"_postman_id":"959eb636-93e2-414d-bbf6-3a22134b5ea5"},{"name":"Create Resource","id":"48bb434a-c089-4a62-9661-0992bc2a6efa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token fde912f58444248d768dab3386533c50695133d6","description":"<p>API key obtained upon login</p>\n","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"content","value":"postman","description":"<p>Resource content string</p>\n","type":"text"}]},"url":"http://localhost:8000/api/resources/create/","description":"<p>Creates a new resource.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","resources","create",""],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"4420d035-2d12-4139-b88c-387d0539b395","name":"Create Resource","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Token fde912f58444248d768dab3386533c50695133d6","description":"API key obtained upon login","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"content","value":"postman","description":"Resource content string","type":"text"}]},"url":"http://localhost:8000/api/resources/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 20 Oct 2019 14:53:59 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.3"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept"},{"key":"Allow","value":"OPTIONS, POST"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"86"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 8,\n    \"creation_date\": \"2019-10-20T14:53:59.963304Z\",\n    \"content\": \"postman\",\n    \"creator\": 1\n}"}],"_postman_id":"48bb434a-c089-4a62-9661-0992bc2a6efa"},{"name":"Get User Resource Info","id":"2d9abce2-ac9c-42a3-a18e-15282cad5ee4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"description":"<p>API key obtained upon login</p>\n","key":"Authorization","type":"text","value":"Token fde912f58444248d768dab3386533c50695133d6"}],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:8000/api/resources/quota/:username/","description":"<p>Returns the resource quota and resource count of the user specified in the URL.</p>\n<p>This API can only be accessed by admin user.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","resources","quota",":username",""],"host":["localhost"],"query":[],"variable":[{"description":{"content":"<p>User's username</p>\n","type":"text/plain"},"type":"string","value":"beneditatan","key":"username"}]}},"response":[{"id":"8cd02534-7ae4-4c10-a54f-94b613959534","name":"Get User Resource Info","originalRequest":{"method":"GET","header":[{"description":"API key obtained upon login","key":"Authorization","type":"text","value":"Token fde912f58444248d768dab3386533c50695133d6"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"http://localhost:8000/api/resources/quota/:username/","protocol":"http","host":["localhost"],"port":"8000","path":["api","resources","quota",":username",""],"variable":[{"key":"username","value":"beneditatan","description":"User's username"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 20 Oct 2019 14:55:38 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.3"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept"},{"key":"Allow","value":"GET, OPTIONS, POST"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"47"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"quota\": 3,\n    \"resources_count\": 3,\n    \"user\": 1\n}"},{"id":"cfedd9ac-4464-4a21-86e4-82f623a15107","name":"Get User Resource Info","originalRequest":{"method":"GET","header":[{"description":"API key obtained upon login","key":"Authorization","type":"text","value":"Token fde912f58444248d768dab3386533c50695133d6"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"http://localhost:8000/api/resources/quota/:username/","protocol":"http","host":["localhost"],"port":"8000","path":["api","resources","quota",":username",""],"variable":[{"key":"username","value":"beneditatan","description":"User's username"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 20 Oct 2019 14:55:38 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.3"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept"},{"key":"Allow","value":"GET, OPTIONS, POST"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"47"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"quota\": 3,\n    \"resources_count\": 3,\n    \"user\": 1\n}"}],"_postman_id":"2d9abce2-ac9c-42a3-a18e-15282cad5ee4"},{"name":"Update User Resource Info","id":"9742f8f6-d426-4241-b56b-cdb6d201ac88","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"description":"<p>API key obtained upon login</p>\n","key":"Authorization","type":"text","value":"Token fde912f58444248d768dab3386533c50695133d6"}],"body":{"mode":"formdata","formdata":[{"description":"<p>Resource quota of a user</p>\n","key":"quota","type":"text","value":"5"}]},"url":"http://localhost:8000/api/resources/quota/:username/","description":"<p>Updates resource quota of a user specified in the URL.</p>\n<p>This API can only be accessed by admin user.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","resources","quota",":username",""],"host":["localhost"],"query":[],"variable":[{"description":{"content":"<p>User's username</p>\n","type":"text/plain"},"type":"string","value":"beneditatan","key":"username"}]}},"response":[{"id":"6835f792-7137-4d1d-a26b-15c73d982856","name":"Update User Resource Info","originalRequest":{"method":"POST","header":[{"description":"API key obtained upon login","key":"Authorization","type":"text","value":"Token fde912f58444248d768dab3386533c50695133d6"}],"body":{"mode":"formdata","formdata":[{"description":"Resource quota of a user","key":"quota","type":"text","value":"5"}]},"url":{"raw":"http://localhost:8000/api/resources/quota/:username/","protocol":"http","host":["localhost"],"port":"8000","path":["api","resources","quota",":username",""],"variable":[{"description":"User's username","key":"username","value":"beneditatan"}]}},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 20 Oct 2019 14:57:41 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.3"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept"},{"key":"Allow","value":"GET, OPTIONS, POST"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"47"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"quota\": 5,\n    \"resources_count\": 3,\n    \"user\": 1\n}"}],"_postman_id":"9742f8f6-d426-4241-b56b-cdb6d201ac88"}],"event":[{"listen":"prerequest","script":{"id":"2118c0ec-814e-4251-a32b-8ab873b26f4a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"68c41cb0-bfbd-4f1c-b301-5e4567681e36","type":"text/javascript","exec":[""]}}]}