{"info":{"_postman_id":"0c8d479d-8e36-4920-b345-ac78846a1d62","name":"QuickCheck","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"15225360","collectionId":"0c8d479d-8e36-4920-b345-ac78846a1d62","publishedId":"TzscqSxE","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-07-29T08:05:36.000Z"},"item":[{"name":"Latest Stories","id":"6bfd5d89-7c9a-4448-9205-95e12ed5892c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/stories/","description":"<ul>\n<li>To get a list of the latest stories</li>\n<li>Can be filter by adding query params: ?type=story</li>\n<li>Type can be any of</li>\n</ul>\n<p>('job', 'story', 'comment', 'poll','pollopt')</p>\n","urlObject":{"path":["api","stories",""],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[{"id":"e08ef6db-4fca-4eaa-a60d-72f38cc8d308","name":"Latest Stories","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/stories/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 27 Jul 2021 10:49:02 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.8.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie"},{"key":"Allow","value":"GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"330"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"hacker_id\": 27949069,\n        \"synced\": \"2021-07-26T18:20:18.030520Z\",\n        \"time\": null,\n        \"type\": \"story\",\n        \"hn_deleted\": null,\n        \"author\": \"thunderbong\",\n        \"text\": null,\n        \"url\": \"https://www.cnet.com/tech/mobile/freedom-phone-why-you-should-avoid-it-what-else-know/\",\n        \"title\": \"Freedom Phone: Why you should avoid it and what else to know\",\n        \"local\": false\n    }\n]"},{"id":"0a6d8372-8d3c-4386-ada9-e027cc1a6d0d","name":"Latest Stories with filter","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://127.0.0.1:8000/api/stories/?type=story","host":["http://127.0.0.1:8000"],"path":["api","stories",""],"query":[{"key":"type","value":"story"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 27 Jul 2021 11:29:15 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.8.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"572"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 3,\n        \"hacker_id\": null,\n        \"synced\": \"2021-07-27T11:21:23.966138Z\",\n        \"time\": null,\n        \"type\": \"story\",\n        \"hn_deleted\": false,\n        \"author\": \"person\",\n        \"text\": \"Test Story creation\",\n        \"url\": \"https://form.jotform.com/211856214308452\",\n        \"title\": \"First Story\",\n        \"local\": true\n    },\n    {\n        \"id\": 1,\n        \"hacker_id\": 27949069,\n        \"synced\": \"2021-07-26T18:20:18.030520Z\",\n        \"time\": null,\n        \"type\": \"story\",\n        \"hn_deleted\": null,\n        \"author\": \"thunderbong\",\n        \"text\": null,\n        \"url\": \"https://www.cnet.com/tech/mobile/freedom-phone-why-you-should-avoid-it-what-else-know/\",\n        \"title\": \"Freedom Phone: Why you should avoid it and what else to know\",\n        \"local\": false\n    }\n]"}],"_postman_id":"6bfd5d89-7c9a-4448-9205-95e12ed5892c"},{"name":"Get Story","id":"c9e898ef-e1b7-4653-acde-06644886127e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/story/1/","description":"<ul>\n<li>EndPoint to get a particular story. 1 can be replaced with any Id of an existing story</li>\n</ul>\n","urlObject":{"path":["api","story","1",""],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[{"id":"53820010-d5b8-4482-9f4c-96e6f19bb52b","name":"Get Story","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/story/1/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 27 Jul 2021 10:50:42 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.8.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie"},{"key":"Allow","value":"GET, PUT, OPTIONS, DELETE"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"328"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"hacker_id\": 27949069,\n    \"synced\": \"2021-07-26T18:20:18.030520Z\",\n    \"time\": null,\n    \"type\": \"story\",\n    \"hn_deleted\": null,\n    \"author\": \"thunderbong\",\n    \"text\": null,\n    \"url\": \"https://www.cnet.com/tech/mobile/freedom-phone-why-you-should-avoid-it-what-else-know/\",\n    \"title\": \"Freedom Phone: Why you should avoid it and what else to know\",\n    \"local\": false\n}"}],"_postman_id":"c9e898ef-e1b7-4653-acde-06644886127e"},{"name":"Create Story","id":"e0b37eed-02ea-4678-927a-18fb6c5cac44","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"author\": \"person\",\r\n    \"text\": \"Test Story creation\",\r\n    \"title\": \"First Story\",\r\n    \"type\": \"story\"\r\n    \r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/create/story/","description":"<ul>\n<li>Endpoint to create a Story</li>\n<li>Type can be any of</li>\n</ul>\n<p>('job', 'story', 'comment', 'poll','pollopt')</p>\n","urlObject":{"path":["api","create","story",""],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[{"id":"f3c3ea00-878d-4dc5-8dd5-34178609cee1","name":"Create Story","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"author\": \"person\",\r\n    \"text\": \"Test Story creation\",\r\n    \"title\": \"First Story\",\r\n    \"type\": \"story\"\r\n    \r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/create/story/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 27 Jul 2021 11:14:57 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.8.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie"},{"key":"Allow","value":"OPTIONS, POST"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"203"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 2,\n    \"hacker_id\": null,\n    \"synced\": \"2021-07-27T11:14:57.831003Z\",\n    \"time\": null,\n    \"type\": \"story\",\n    \"hn_deleted\": false,\n    \"author\": \"person\",\n    \"text\": \"Test Story creation\",\n    \"url\": null,\n    \"title\": \"First Story\",\n    \"local\": true\n}"}],"_postman_id":"e0b37eed-02ea-4678-927a-18fb6c5cac44"},{"name":"Delete Story","id":"fbd64b37-16d9-45cf-9e0e-a6772a084142","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://127.0.0.1:8000/api/story/2/","description":"<ul>\n<li>Endpoint to delete Stories made via the API. Other stories wont delete if used</li>\n</ul>\n","urlObject":{"path":["api","story","2",""],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[{"id":"c220001e-5c10-4371-8aac-87337585cbf5","name":"Delete local Story","originalRequest":{"method":"DELETE","header":[],"url":"http://127.0.0.1:8000/api/story/2/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 27 Jul 2021 11:18:33 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.8.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie"},{"key":"Allow","value":"OPTIONS, GET, PUT, DELETE"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"34"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"deleted successfully\"\n}"},{"id":"46976dd4-0c54-4591-9d2a-f761412bd9e9","name":"Delete hackerank Story","originalRequest":{"method":"DELETE","header":[],"url":"http://127.0.0.1:8000/api/story/1/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 27 Jul 2021 11:19:28 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.8.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie"},{"key":"Allow","value":"OPTIONS, GET, PUT, DELETE"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"71"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"This story is from hacker news hence it can't be modified\"\n}"}],"_postman_id":"fbd64b37-16d9-45cf-9e0e-a6772a084142"},{"name":"Update Story","id":"a2274f38-49f2-4011-a68b-af98c32528fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"url\": \"https://form.jotform.com/211856214308452\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/story/3/","description":"<ul>\n<li>Endpoint to update story</li>\n</ul>\n","urlObject":{"path":["api","story","3",""],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[{"id":"9de70e10-85d9-4e2b-a177-468a355fc399","name":"Update Story","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"url\": \"https://form.jotform.com/211856214308452\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/story/3/"},"status":"Partial Content","code":206,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 27 Jul 2021 11:27:18 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.8.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie"},{"key":"Allow","value":"OPTIONS, GET, DELETE, PUT"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"241"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 3,\n    \"hacker_id\": null,\n    \"synced\": \"2021-07-27T11:21:23.966138Z\",\n    \"time\": null,\n    \"type\": \"story\",\n    \"hn_deleted\": false,\n    \"author\": \"person\",\n    \"text\": \"Test Story creation\",\n    \"url\": \"https://form.jotform.com/211856214308452\",\n    \"title\": \"First Story\",\n    \"local\": true\n}"}],"_postman_id":"a2274f38-49f2-4011-a68b-af98c32528fb"}],"event":[{"listen":"prerequest","script":{"id":"e2ae4f02-d992-47bb-a15d-a7a2db481b76","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"f7c43c43-2c44-4c87-9e75-c67d5d403a18","type":"text/javascript","exec":[""]}}],"variable":[{"key":"home","value":"http://127.0.0.1:8000"}]}