{"info":{"_postman_id":"53ecefec-7457-41ee-ba0d-ae1349461d36","name":"Favourite-things","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"4912237","collectionId":"53ecefec-7457-41ee-ba0d-ae1349461d36","publishedId":"SVYow1PC","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-08-02T19:19:16.000Z"},"item":[{"name":"Update a favourite","id":"c01c1577-8ebc-4256-82a3-326715a19e42","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"Buddy man\",\n    \"description\": \"The guy who can fight for you any day\",\n    \"ranking\": 5,\n    \"category\": 1\n}"},"url":"{{base_url}}/favourites/7","description":"<p>Endpoint to update a favourite</p>\n","urlObject":{"path":["favourites","7"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"20e8626f-928f-4fdf-addb-0bea5b4b74b6","name":"(400) Invalid fields in request body","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": {},\n    \"description\": \"The guy \",\n    \"ranking\": \"dsd\",\n    \"category\": \"sdf\"\n}"},"url":"{{base_url}}/favourites/7"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Aug 2019 18:10:48 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"PUT, DELETE, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"197"}],"cookie":[],"responseTime":null,"body":"{\n    \"title\": [\n        \"Not a valid string.\"\n    ],\n    \"description\": [\n        \"description should not be less than 10\"\n    ],\n    \"ranking\": [\n        \"A valid integer is required.\"\n    ],\n    \"category\": [\n        \"Incorrect type. Expected pk value, received str.\"\n    ]\n}"},{"id":"566dd0af-e9ee-41e2-a438-a97e662ac9db","name":"(400) Missing required fields","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\n}"},"url":"{{base_url}}/favourites/7"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Aug 2019 18:26:08 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"PUT, DELETE, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"156"}],"cookie":[],"responseTime":null,"body":"{\n    \"title\": [\n        \"This field is required.\"\n    ],\n    \"description\": [\n        \"This field is required.\"\n    ],\n    \"ranking\": [\n        \"This field is required.\"\n    ],\n    \"category\": [\n        \"This field is required.\"\n    ]\n}"},{"id":"ab9f7153-bf55-484e-8bc7-0881bef0cd36","name":"(400) Unexisting category pk","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"Buddy man\",\n    \"description\": \"The guy who can fight for you any day\",\n    \"ranking\": 5,\n    \"category\": 132\n}"},"url":"{{base_url}}/favourites/7"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Aug 2019 18:09:40 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"PUT, DELETE, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"60"}],"cookie":[],"responseTime":null,"body":"{\n    \"category\": [\n        \"Invalid pk \\\"132\\\" - object does not exist.\"\n    ]\n}"},{"id":"b50e6ede-45e1-4800-bc4f-4134b52daf01","name":"(200) Successful update","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"Buddy man\",\n    \"description\": \"The guy who can fight for you any day\",\n    \"ranking\": 5,\n    \"category\": 1\n}"},"url":"{{base_url}}/favourites/7"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Aug 2019 18:07:21 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"PUT, DELETE, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"198"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 7,\n    \"title\": \"Buddy man\",\n    \"description\": \"The guy who can fight for you any day\",\n    \"ranking\": 5,\n    \"created_date\": \"2019-06-30T15:27:02.047531Z\",\n    \"modified_date\": \"2019-08-02T18:07:21.303155Z\",\n    \"category\": 1\n}"}],"_postman_id":"c01c1577-8ebc-4256-82a3-326715a19e42"},{"name":"Create new category","id":"1f0653c6-0919-4767-aae4-dbabf1895376","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Pet\"\n}"},"url":"{{base_url}}/categories","description":"<p>Endpoint for creating new category</p>\n","urlObject":{"path":["categories"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"39633ad1-3e5c-4e34-9694-081ddc2f3ab1","name":"(201) Successfully created","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Pet\"\n}"},"url":"{{base_url}}/categories"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Aug 2019 18:11:58 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"32"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 21,\n    \"name\": \"Pet\",\n    \"count\": 0\n}"},{"id":"ccd1eec4-d2b7-44c5-87f7-0c9ba8d9be95","name":"(400) Invalid name field","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": [\"Pet\"]\n}"},"url":"{{base_url}}/categories"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Aug 2019 18:13:15 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"32"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": [\n        \"Not a valid string.\"\n    ]\n}"},{"id":"d4f89ce2-5e87-498e-b18c-0024007b0055","name":"(400) Already existing category","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Pet\"\n}"},"url":"{{base_url}}/categories"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Aug 2019 18:12:29 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"52"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": [\n        \"category with this name already exists.\"\n    ]\n}"}],"_postman_id":"1f0653c6-0919-4767-aae4-dbabf1895376"},{"name":"Update category","id":"0c5db18e-3078-4392-b74d-5d505c170ddf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Music\"\n}"},"url":"http://localhost:7000/categories/9","description":"<p>Endpoint for updating a category</p>\n","urlObject":{"protocol":"http","port":"7000","path":["categories","9"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"3edd23aa-5c14-4b1f-a55b-2d39c5dac24b","name":"(400) Invalid input name","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": {}\n}"},"url":"{{base_url}}/categories/9"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Aug 2019 18:24:28 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"GET, PUT, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"32"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": [\n        \"Not a valid string.\"\n    ]\n}"},{"id":"41e5462f-8ef3-45de-9333-de255887979b","name":"(200) Successfully updated","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Music\"\n}"},"url":"http://localhost:7000/categories/9"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Aug 2019 18:17:20 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"GET, PUT, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"33"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 9,\n    \"name\": \"Music\",\n    \"count\": 0\n}"},{"id":"5645c60b-6bac-458d-bff2-299dcd1effe9","name":"(404) Item not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Music\"\n}"},"url":"http://localhost:7000/categories/9999"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Aug 2019 18:28:47 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"GET, PUT, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"23"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": \"Not found.\"\n}"},{"id":"63beced9-a96b-487c-87bf-948edc4afce1","name":"(400) Name already taken","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Phones\"\n}"},"url":"{{base_url}}/categories/9"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Aug 2019 18:23:51 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"GET, PUT, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"52"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": [\n        \"category with this name already exists.\"\n    ]\n}"},{"id":"e450af89-fb7e-4b69-a375-774c9acaada3","name":"(400) Missing required field","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"fish\": \"Phones\"\n}"},"url":"{{base_url}}/categories/9"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Aug 2019 18:24:54 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"GET, PUT, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"36"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": [\n        \"This field is required.\"\n    ]\n}"}],"_postman_id":"0c5db18e-3078-4392-b74d-5d505c170ddf"},{"name":"Delete a favourite","id":"225846d6-0d1b-4cdd-a1cc-78dd0b33b858","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{base_url}}/favourites/62","description":"<p>Endpoint for deleting favourite</p>\n","urlObject":{"path":["favourites","62"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"2283a146-8877-4381-b63a-a0dec74b1839","name":"(404) Item not found","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{base_url}}/favourites/62"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Aug 2019 18:28:04 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"PUT, DELETE, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"23"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": \"Not found.\"\n}"},{"id":"afe0db59-3a72-4c43-9e66-e74cf28c9553","name":"(204) Successfully deleted","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{base_url}}/favourites/62"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Fri, 02 Aug 2019 18:27:08 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"PUT, DELETE, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"225846d6-0d1b-4cdd-a1cc-78dd0b33b858"},{"name":"Delete category","id":"ee481377-8260-43ea-bc13-817e7e7adf8e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{base_url}}/categories/9","description":"<p>Endpoint for deleting a category</p>\n","urlObject":{"path":["categories","9"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"27b3d6ab-7355-45ea-be55-a1103907227f","name":"(204) Successfully deleted","originalRequest":{"method":"DELETE","header":[],"url":"{{base_url}}/categories/9"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Fri, 02 Aug 2019 18:31:54 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"GET, PUT, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":null},{"id":"6ee9b944-e812-4d03-891c-0f4929bc90af","name":"(404) Unexisting category","originalRequest":{"method":"DELETE","header":[],"url":"{{base_url}}/categories/9"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Aug 2019 18:33:14 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"GET, PUT, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"23"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": \"Not found.\"\n}"}],"_postman_id":"ee481377-8260-43ea-bc13-817e7e7adf8e"},{"name":"Create favourite","id":"6dbe1db0-2967-451a-9c13-0c23df68a71b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"Anaeze Nsoffor\",\n    \"description\": \"The guy that is versatile in so many skills\",\n    \"ranking\": 5,\n    \"category\": 1\n}"},"url":"{{base_url}}/favourites","description":"<p>Endpoint for creating a favourite</p>\n","urlObject":{"path":["favourites"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"3fb7a7ee-0910-4a28-b07d-ffaf4e214703","name":"(400) Invalid favourite and metadata fields","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"Anaeze Nsoffor\",\n    \"description\": \"The guy\",\n    \"ranking\": \"ew\",\n    \"category\": 1,\n    \"metadata\": [\n        {\n            \"name\": \"age\",\n            \"data_type\": \"number\",\n            \"value\": [28],\n            \"favourite\": 65\n        },\n        {\n            \"name\": \"birthdate\",\n            \"data_type\": \"wonderful\",\n            \"value\": \"1991-07-11\",\n            \"favourite\": 65\n        }\n    ]\n}"},"url":"{{base_url}}/favourites"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Aug 2019 18:42:10 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"228"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": {\n        \"favourite\": {\n            \"description\": [\n                \"description should not be less than 10\"\n            ],\n            \"ranking\": [\n                \"A valid integer is required.\"\n            ]\n        },\n        \"metadata\": [\n            {\n                \"value\": [\n                    \"Not a valid string.\"\n                ]\n            },\n            {\n                \"data_type\": [\n                    \"\\\"wonderful\\\" is not a valid choice.\"\n                ]\n            }\n        ]\n    }\n}"},{"id":"547adb33-b4d7-426b-a1a2-9e7717a0265a","name":"(201) Successful-without metadata","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"Anaeze Nsoffor\",\n    \"description\": \"The guy that is versatile in so many skills\",\n    \"ranking\": 5,\n    \"category\": 1\n}"},"url":"{{base_url}}/favourites"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Aug 2019 18:37:26 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"210"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 65,\n    \"title\": \"Anaeze Nsoffor\",\n    \"description\": \"The guy that is versatile in so many skills\",\n    \"ranking\": 5,\n    \"created_date\": \"2019-08-02T18:37:26.117979Z\",\n    \"modified_date\": \"2019-08-02T18:37:26.133604Z\",\n    \"category\": 1\n}"},{"id":"8d42ff11-139c-475e-8ee0-ecd1ce0013f6","name":"(400) Unexisting category field","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"Anaeze Nsoffor\",\n    \"description\": \"The guy that is versatile in so many skills\",\n    \"ranking\": 5,\n    \"category\": 1000000,\n    \"metadata\": [\n        {\n            \"name\": \"age\",\n            \"data_type\": \"number\",\n            \"value\": 28,\n            \"favourite\": 65\n        },\n        {\n            \"name\": \"birthdate\",\n            \"data_type\": \"date\",\n            \"value\": \"1991-07-11\",\n            \"favourite\": 65\n        }\n    ]\n}"},"url":"{{base_url}}/favourites"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Aug 2019 18:45:02 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"103"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": {\n        \"favourite\": {\n            \"category\": [\n                \"Invalid pk \\\"1000000\\\" - object does not exist.\"\n            ]\n        },\n        \"metadata\": []\n    }\n}"},{"id":"ae052e5d-56f0-406c-8a35-7ff7e8d36cbb","name":"(400) Missing required fields","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"Anaeze Nsoffor\",\n    \"description\": \"The guy that is versatile in so many skills\",\n    \"yam\": 5,\n    \"category\": 1,\n    \"metadata\": [\n        {\n            \"name\": \"age\",\n            \"cool\": \"number\",\n            \"value\": 28,\n            \"favourite\": 65\n        },\n        {\n            \"name\": \"birthdate\",\n            \"stew\": \"date\",\n            \"value\": \"1991-07-11\",\n            \"favourite\": 65\n        }\n    ]\n}"},"url":"{{base_url}}/favourites"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Aug 2019 18:43:13 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"161"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": {\n        \"favourite\": {\n            \"ranking\": [\n                \"This field is required.\"\n            ]\n        },\n        \"metadata\": [\n            {\n                \"data_type\": [\n                    \"This field is required.\"\n                ]\n            },\n            {\n                \"data_type\": [\n                    \"This field is required.\"\n                ]\n            }\n        ]\n    }\n}"},{"id":"c19b9eec-6d2f-4ba6-8d63-46b8e21b4d77","name":"(400) Invalid metadata field","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"Anaeze Nsoffor\",\n    \"description\": \"The guy that is versatile in so many skills\",\n    \"ranking\": 5,\n    \"category\": 1,\n    \"metadata\": \"wisdom\"\n}"},"url":"{{base_url}}/favourites"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Aug 2019 18:46:26 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"110"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": {\n        \"favourite\": {},\n        \"metadata\": {\n            \"non_field_errors\": [\n                \"Expected a list of items but got type \\\"str\\\".\"\n            ]\n        }\n    }\n}"},{"id":"fea4e013-a59f-4d04-aee8-70a457507337","name":"(201) Successful-With metadata","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"Anaeze Nsoffor\",\n    \"description\": \"The guy that is versatile in so many skills\",\n    \"ranking\": 5,\n    \"category\": 1,\n    \"metadata\": [\n        {\n            \"name\": \"age\",\n            \"data_type\": \"number\",\n            \"value\": 28,\n            \"favourite\": 65\n        },\n        {\n            \"name\": \"birthdate\",\n            \"data_type\": \"date\",\n            \"value\": \"1991-07-11\",\n            \"favourite\": 65\n        }\n    ]\n}"},"url":"{{base_url}}/favourites"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Aug 2019 18:40:32 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"210"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 66,\n    \"title\": \"Anaeze Nsoffor\",\n    \"description\": \"The guy that is versatile in so many skills\",\n    \"ranking\": 5,\n    \"created_date\": \"2019-08-02T18:40:32.893640Z\",\n    \"modified_date\": \"2019-08-02T18:40:32.903344Z\",\n    \"category\": 1\n}"}],"_postman_id":"6dbe1db0-2967-451a-9c13-0c23df68a71b"},{"name":"Get list of categories","id":"e9be6508-226c-4ccd-ad9f-6d26c3cff8b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/categories","description":"<p>Endpoint to get list of categories</p>\n","urlObject":{"path":["categories"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"dc5f1a8a-1dd6-4cb3-abde-febddbac4405","name":"(200) Successfully fetched categories","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/categories"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Aug 2019 18:48:03 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"526"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 21,\n        \"name\": \"Pet\",\n        \"count\": 0\n    },\n    {\n        \"id\": 20,\n        \"name\": \"Actors\",\n        \"count\": 0\n    },\n    {\n        \"id\": 18,\n        \"name\": \"Movies\",\n        \"count\": 0\n    },\n    {\n        \"id\": 16,\n        \"name\": \"Academic courses\",\n        \"count\": 0\n    },\n    {\n        \"id\": 13,\n        \"name\": \"Artists\",\n        \"count\": 1\n    },\n    {\n        \"id\": 12,\n        \"name\": \"Inspirations\",\n        \"count\": 0\n    },\n    {\n        \"id\": 11,\n        \"name\": \"Programmers\",\n        \"count\": 0\n    },\n    {\n        \"id\": 10,\n        \"name\": \"Phones\",\n        \"count\": 1\n    },\n    {\n        \"id\": 8,\n        \"name\": \"Colleagues\",\n        \"count\": 3\n    },\n    {\n        \"id\": 7,\n        \"name\": \"Classical\",\n        \"count\": 3\n    },\n    {\n        \"id\": 6,\n        \"name\": \"Family\",\n        \"count\": 4\n    },\n    {\n        \"id\": 4,\n        \"name\": \"Dishes\",\n        \"count\": 11\n    },\n    {\n        \"id\": 2,\n        \"name\": \"Books\",\n        \"count\": 4\n    },\n    {\n        \"id\": 1,\n        \"name\": \"Friends\",\n        \"count\": 7\n    }\n]"}],"_postman_id":"e9be6508-226c-4ccd-ad9f-6d26c3cff8b2"},{"name":"Get single category","id":"3639540f-352b-40ad-bc9a-b56d42a924b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/categories/9","description":"<p>Endpoint for getting a single category</p>\n","urlObject":{"path":["categories","9"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"35e52c6a-4b91-4417-8d39-3e90c8e3d8fc","name":"(404) Unexisting category","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/categories/1909090"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Aug 2019 18:52:04 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"GET, PUT, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"23"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": \"Not found.\"\n}"},{"id":"3a9ab752-ad16-450a-b294-cb83b3dcf83a","name":"(200) Successful with no favourites","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/categories/9"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Aug 2019 18:49:23 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"GET, PUT, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"49"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 9,\n    \"name\": \"Music\",\n    \"count\": 0,\n    \"favourites\": []\n}"},{"id":"55063bfa-532d-4d11-bc34-9bf8f8e6f13e","name":"(200) Successful with favourite list","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/categories/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Aug 2019 18:51:14 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"GET, PUT, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"1654"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"name\": \"Friends\",\n    \"count\": 7,\n    \"favourites\": [\n        {\n            \"id\": 68,\n            \"title\": \"Anaeze Nsoffor\",\n            \"description\": \"The guy that is versatile in so many skills\",\n            \"ranking\": 5,\n            \"category\": 1,\n            \"metadata\": []\n        },\n        {\n            \"id\": 67,\n            \"title\": \"Anaeze Nsoffor\",\n            \"description\": \"The guy that is versatile in so many skills\",\n            \"ranking\": 6,\n            \"category\": 1,\n            \"metadata\": [\n                {\n                    \"name\": \"age\",\n                    \"data_type\": \"number\",\n                    \"value\": \"28\"\n                },\n                {\n                    \"name\": \"birthdate\",\n                    \"data_type\": \"date\",\n                    \"value\": \"1991-07-11\"\n                }\n            ]\n        },\n        {\n            \"id\": 66,\n            \"title\": \"Anaeze Nsoffor\",\n            \"description\": \"The guy that is versatile in so many skills\",\n            \"ranking\": 7,\n            \"category\": 1,\n            \"metadata\": [\n                {\n                    \"name\": \"age\",\n                    \"data_type\": \"number\",\n                    \"value\": \"28\"\n                },\n                {\n                    \"name\": \"birthdate\",\n                    \"data_type\": \"date\",\n                    \"value\": \"1991-07-11\"\n                }\n            ]\n        },\n        {\n            \"id\": 65,\n            \"title\": \"Anaeze Nsoffor\",\n            \"description\": \"The guy that is versatile in so many skills\",\n            \"ranking\": 8,\n            \"category\": 1,\n            \"metadata\": []\n        },\n        {\n            \"id\": 7,\n            \"title\": \"Buddy man\",\n            \"description\": \"The guy who can fight for you any day\",\n            \"ranking\": 9,\n            \"category\": 1,\n            \"metadata\": [\n                {\n                    \"name\": \"profession\",\n                    \"data_type\": \"text\",\n                    \"value\": \"fashion design\"\n                },\n                {\n                    \"name\": \"date of birth\",\n                    \"data_type\": \"date\",\n                    \"value\": \"1994-07-26\"\n                }\n            ]\n        },\n        {\n            \"id\": 2,\n            \"title\": \"Alimba John\",\n            \"description\": \"Most intelligent friend\",\n            \"ranking\": 3,\n            \"category\": 1,\n            \"metadata\": [\n                {\n                    \"name\": \"height\",\n                    \"data_type\": \"text\",\n                    \"value\": \"6.5 feet\"\n                },\n                {\n                    \"name\": \"Age\",\n                    \"data_type\": \"number\",\n                    \"value\": \"25\"\n                },\n                {\n                    \"name\": \"favourite game\",\n                    \"data_type\": \"text\",\n                    \"value\": \"chess\"\n                }\n            ]\n        },\n        {\n            \"id\": 1,\n            \"title\": \"Victor\",\n            \"description\": \"My best friend since day 1\",\n            \"ranking\": 1,\n            \"category\": 1,\n            \"metadata\": [\n                {\n                    \"name\": \"languages spoken\",\n                    \"data_type\": \"enum\",\n                    \"value\": \"English, French, German, Igbo, Hausa, Yoruba\"\n                },\n                {\n                    \"name\": \"age\",\n                    \"data_type\": \"number\",\n                    \"value\": \"26\"\n                },\n                {\n                    \"name\": \"career\",\n                    \"data_type\": \"text\",\n                    \"value\": \"software engineer\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"3639540f-352b-40ad-bc9a-b56d42a924b8"},{"name":"Add Metadata","id":"f0b3c696-8268-4fcd-85ba-6700e97b1dda","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"duration\",\n    \"data_type\": \"date\",\n    \"value\": \"3 hours\",\n    \"favourite\": 34\n}"},"url":"{{base_url}}/metadata","description":"<p>Endpoint for adding metadata to a favourite</p>\n","urlObject":{"path":["metadata"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"68b42428-4f75-444f-849e-d7275e0de09c","name":"(400) Unexisting favourite key","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"extra ingredients\",\n    \"data_type\": \"enum\",\n    \"value\": \"meat, oil, pepper, onions\",\n    \"favourite\": 89898989\n}"},"url":"{{base_url}}/metadata"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Aug 2019 18:57:41 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"66"}],"cookie":[],"responseTime":null,"body":"{\n    \"favourite\": [\n        \"Invalid pk \\\"89898989\\\" - object does not exist.\"\n    ]\n}"},{"id":"a1bf4e3f-8d57-4e45-a429-027481a13bc1","name":"(201) Successfully added (text)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"duration\",\n    \"data_type\": \"text\",\n    \"value\": \"3 hours\",\n    \"favourite\": 34\n}"},"url":"{{base_url}}/metadata"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Aug 2019 19:04:17 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"79"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 68,\n    \"name\": \"duration\",\n    \"data_type\": \"text\",\n    \"value\": \"3 hours\",\n    \"favourite\": 34\n}"},{"id":"b7c3c60d-4946-4bec-98ba-29680c3d8837","name":"(400) Missing required fields","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\n}"},"url":"{{base_url}}/metadata"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Aug 2019 19:01:08 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"152"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": [\n        \"This field is required.\"\n    ],\n    \"data_type\": [\n        \"This field is required.\"\n    ],\n    \"value\": [\n        \"This field is required.\"\n    ],\n    \"favourite\": [\n        \"This field is required.\"\n    ]\n}"},{"id":"f31872be-e19e-44da-9c9b-bff0ee703cca","name":"(201) Successfully added metadata (enum)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"extra ingredients\",\n    \"data_type\": \"enum\",\n    \"value\": \"meat, oil, pepper, onions\",\n    \"favourite\": 34\n}"},"url":"{{base_url}}/metadata"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Aug 2019 19:03:04 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"106"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 67,\n    \"name\": \"extra ingredients\",\n    \"data_type\": \"enum\",\n    \"value\": \"meat, oil, pepper, onions\",\n    \"favourite\": 34\n}"},{"id":"fd5aa50c-c4d7-4332-b691-4b638dd4c656","name":"(400) Invalid request body","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": [\"extra ingredients\"],\n    \"data_type\": \"fish\",\n    \"value\": \"meat, oil, pepper, onions\",\n    \"favourite\": \"\"\n}"},"url":"{{base_url}}/metadata"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Aug 2019 19:00:08 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"124"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": [\n        \"Not a valid string.\"\n    ],\n    \"data_type\": [\n        \"\\\"fish\\\" is not a valid choice.\"\n    ],\n    \"favourite\": [\n        \"This field may not be null.\"\n    ]\n}"}],"_postman_id":"f0b3c696-8268-4fcd-85ba-6700e97b1dda"},{"name":"Remove metadata","id":"ac7fd988-c41f-4558-a3cf-d28d3e3e6649","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{base_url}}/metadata/66","description":"<p>Endpoint for removing metadata from a favourite</p>\n","urlObject":{"path":["metadata","66"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"44891360-1460-45fc-9955-0c22cb69a731","name":"(204) Successfully removed","originalRequest":{"method":"DELETE","header":[],"url":"{{base_url}}/metadata/66"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Fri, 02 Aug 2019 19:06:39 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"DELETE, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":null},{"id":"85eb8adb-71fb-4ff2-91fa-c78b70db4f38","name":"(404) Unexisting metadata","originalRequest":{"method":"DELETE","header":[],"url":"{{base_url}}/metadata/6697878"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Aug 2019 19:07:29 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"DELETE, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"23"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": \"Not found.\"\n}"}],"_postman_id":"ac7fd988-c41f-4558-a3cf-d28d3e3e6649"},{"name":"Audit logs - Favorites","id":"e66ff423-eba2-4f70-acec-a6bedee37450","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/favourites/63/logs","description":"<p>Endpoint for fatching audit logs for a favourite</p>\n","urlObject":{"path":["favourites","63","logs"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"18158849-4e38-42cf-9f90-e7e6113097ca","name":"(200) Successfully fetched logs","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/favourites/63/logs"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Aug 2019 18:06:44 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"1688"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"iPhone SX-Audit Log\",\n    \"data\": [\n        {\n            \"id\": 31,\n            \"model\": \"favourite\",\n            \"action\": \"delete\",\n            \"date\": \"2019-08-01T01:12:57.583884Z\",\n            \"before\": {\n                \"id\": 63,\n                \"title\": \"iPhone SX\",\n                \"ranking\": 3,\n                \"category\": \"Phones\",\n                \"description\": \"Best iPhone model in 2018\",\n                \"created_date\": \"2019-07-31T03:53:40.462714Z\",\n                \"modified_date\": \"2019-08-01T01:08:55.311006Z\"\n            },\n            \"after\": {},\n            \"resource_id\": 63\n        },\n        {\n            \"id\": 30,\n            \"model\": \"favourite\",\n            \"action\": \"update\",\n            \"date\": \"2019-08-01T01:08:55.307744Z\",\n            \"before\": {\n                \"id\": 63,\n                \"title\": \"iPhone SX\",\n                \"ranking\": 1,\n                \"category\": \"Phones\",\n                \"description\": \"Best iPhone model in 2018\",\n                \"created_date\": \"2019-07-31T03:53:40.462714Z\",\n                \"modified_date\": \"2019-08-01T01:04:16.973044Z\"\n            },\n            \"after\": {\n                \"id\": 63,\n                \"title\": \"iPhone SX\",\n                \"ranking\": 3,\n                \"category\": \"Phones\",\n                \"description\": \"Best iPhone model in 2018\",\n                \"created_date\": \"2019-07-31T03:53:40.462714Z\",\n                \"modified_date\": \"2019-08-01T01:04:16.973044Z\"\n            },\n            \"resource_id\": 63\n        },\n        {\n            \"id\": 29,\n            \"model\": \"favourite\",\n            \"action\": \"update\",\n            \"date\": \"2019-08-01T01:04:16.968875Z\",\n            \"before\": {\n                \"id\": 63,\n                \"title\": \"iPhone SX\",\n                \"ranking\": 5,\n                \"category\": 10,\n                \"description\": \"Best iPhone model in 2018\",\n                \"created_date\": \"2019-07-31T03:53:40.462714Z\",\n                \"modified_date\": \"2019-07-31T03:53:40.464565Z\"\n            },\n            \"after\": {\n                \"id\": 63,\n                \"title\": \"iPhone SX\",\n                \"ranking\": 1,\n                \"category\": \"Phones\",\n                \"description\": \"Best iPhone model in 2018\",\n                \"created_date\": \"2019-07-31T03:53:40.462714Z\",\n                \"modified_date\": \"2019-07-31T03:53:40.464565Z\"\n            },\n            \"resource_id\": 63\n        },\n        {\n            \"id\": 26,\n            \"model\": \"favourite\",\n            \"action\": \"create\",\n            \"date\": \"2019-07-31T03:53:40.462714Z\",\n            \"before\": {},\n            \"after\": {\n                \"id\": 63,\n                \"title\": \"iPhone SX\",\n                \"ranking\": 5,\n                \"category\": \"Phones\",\n                \"description\": \"Best iPhone model in 2018\",\n                \"created_date\": \"2019-07-31T03:53:40.462714Z\",\n                \"modified_date\": \"2019-07-31T03:53:40.464565Z\"\n            },\n            \"resource_id\": 63\n        }\n    ]\n}"},{"id":"98d5dfa4-3fa5-4985-a814-70c95cc7116b","name":"(404) Favourite does not exist","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/favourites/639999/logs"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Aug 2019 19:14:23 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"53"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": \"favourite with pk 639999, does not exist\"\n}"}],"_postman_id":"e66ff423-eba2-4f70-acec-a6bedee37450"},{"name":"Audit log - Categories","id":"bb12acd6-c895-4a53-979d-a248954ab42a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/categories/21/logs","description":"<p>Endpoint for fetching audit logs for a category</p>\n","urlObject":{"path":["categories","21","logs"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"b6a45061-fa2e-4f8c-a474-cb0ba0fd4ced","name":"(404) Category id does not exist","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/categories/210000/logs"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Aug 2019 19:17:50 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"52"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": \"category with pk 210000, does not exist\"\n}"},{"id":"f2389d1c-24ce-40d3-bdbb-0d81b00b7a9c","name":"(200) Successfully fetched logs","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/categories/21/logs"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Aug 2019 19:16:53 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.7.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"190"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Pet-Audit Log\",\n    \"data\": [\n        {\n            \"id\": 42,\n            \"model\": \"category\",\n            \"action\": \"create\",\n            \"date\": \"2019-08-02T18:11:58.055696Z\",\n            \"before\": {},\n            \"after\": {\n                \"id\": 21,\n                \"name\": \"Pet\",\n                \"count\": 0\n            },\n            \"resource_id\": 21\n        }\n    ]\n}"}],"_postman_id":"bb12acd6-c895-4a53-979d-a248954ab42a"}]}