{"info":{"_postman_id":"abee85f2-c5d1-4718-80bf-f3de7e565b30","name":"GistsApi","description":"<html><head></head><body><p>#Gists Api</p>\n<p>Makes CRUD operation easier for Gist files</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"10198604","collectionId":"abee85f2-c5d1-4718-80bf-f3de7e565b30","publishedId":"SzYXWzH8","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-03-30T14:37:49.000Z"},"item":[{"name":"http://localhost:3000/api/user/register","id":"a971fa5e-65a4-4fb2-b019-855cfb581df5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"email\": \"rithikjain@gmail.com\",\n\t\"name\": \"Rithik Jain\",\n\t\"oauth_token\": \"skfhsjk42j43j4464jjhjg45jh5h\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/user/register","urlObject":{"protocol":"http","port":"3000","path":["api","user","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"c777355b-170f-4ccc-95fb-e5d4c760a125","name":"http://localhost:3000/api/user/register","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwicm9sZSI6InVzZXIifQ.0o8HDmTK2oLxJ_f3ZtScEcfjNCZnQlS4RxCy2joj2yE","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\n\t\"email\": \"rithikjain@gmail.com\",\n\t\"name\": \"Rithik Jain\",\n\t\"oauth_token\": \"skfhsjk42j43j4464jjhjg45jh5h\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/user/register"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 30 Mar 2020 14:21:11 GMT"},{"key":"Content-Length","value":"366"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Account Registered\",\n    \"status\": 201,\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Mywicm9sZSI6InVzZXIifQ.oN9kE9EvdKnCQhh7TuWooJKwk5-oJjn6PjP_aVZsCIM\",\n    \"user\": {\n        \"ID\": 3,\n        \"CreatedAt\": \"2020-03-30T19:51:11.2831466+05:30\",\n        \"UpdatedAt\": \"2020-03-30T19:51:11.2831466+05:30\",\n        \"DeletedAt\": null,\n        \"name\": \"Rithik Jain\",\n        \"email\": \"rithikjain@gmail.com\",\n        \"oauth_token\": \"\"\n    }\n}"}],"_postman_id":"a971fa5e-65a4-4fb2-b019-855cfb581df5"},{"name":"http://localhost:3000/api/user/details","id":"da6722a8-780c-452b-b64b-41bc3f3287b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwicm9sZSI6InVzZXIifQ.0o8HDmTK2oLxJ_f3ZtScEcfjNCZnQlS4RxCy2joj2yE","type":"text"}],"url":"http://localhost:3000/api/user/details","urlObject":{"protocol":"http","port":"3000","path":["api","user","details"],"host":["localhost"],"query":[{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[{"id":"bd471656-8bf7-4d57-856a-4f5c716aa5e2","name":"http://localhost:3000/api/user/details","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwicm9sZSI6InVzZXIifQ.0o8HDmTK2oLxJ_f3ZtScEcfjNCZnQlS4RxCy2joj2yE","type":"text"}],"url":{"raw":"http://localhost:3000/api/user/details","protocol":"http","host":["localhost"],"port":"3000","path":["api","user","details"],"query":[{"key":"","value":null,"type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 30 Mar 2020 14:34:15 GMT"},{"key":"Content-Length","value":"279"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User Found\",\n    \"status\": 200,\n    \"user\": {\n        \"ID\": 1,\n        \"CreatedAt\": \"2020-03-30T12:42:23.235582+05:30\",\n        \"UpdatedAt\": \"2020-03-30T16:03:24.449817+05:30\",\n        \"DeletedAt\": null,\n        \"name\": \"Rithik Jain\",\n        \"email\": \"rithik.jain3006@gmail.com\",\n        \"oauth_token\": \"6aaa311e779cb9fa2ecdbe43969b4ca292454216\"\n    }\n}"}],"_postman_id":"da6722a8-780c-452b-b64b-41bc3f3287b2"},{"name":"http://localhost:3000/api/gists/view","id":"96a05b0d-a1a6-4749-bd3c-5bb3f6e07871","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwicm9sZSI6InVzZXIifQ.0o8HDmTK2oLxJ_f3ZtScEcfjNCZnQlS4RxCy2joj2yE","type":"text"}],"url":"http://localhost:3000/api/gists/view","urlObject":{"protocol":"http","port":"3000","path":["api","gists","view"],"host":["localhost"],"query":[{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[{"id":"660e4516-2b82-4922-b66c-33952e792520","name":"http://localhost:3000/api/gists/view","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwicm9sZSI6InVzZXIifQ.0o8HDmTK2oLxJ_f3ZtScEcfjNCZnQlS4RxCy2joj2yE","type":"text"}],"url":{"raw":"http://localhost:3000/api/gists/view","protocol":"http","host":["localhost"],"port":"3000","path":["api","gists","view"],"query":[{"key":"","value":null,"type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 30 Mar 2020 14:34:40 GMT"},{"key":"Content-Length","value":"915"}],"cookie":[],"responseTime":null,"body":"{\n    \"files\": [\n        {\n            \"gist_id\": \"fb5b49dcd9183de2f4a799c65d1561da\",\n            \"gist_url\": \"https://api.github.com/gists/fb5b49dcd9183de2f4a799c65d1561da\",\n            \"public\": false,\n            \"updated_at\": \"2020-03-30T14:24:59Z\",\n            \"filename\": \"main.go\",\n            \"language\": \"Go\",\n            \"raw_url\": \"https://gist.githubusercontent.com/rithikjain/fb5b49dcd9183de2f4a799c65d1561da/raw/f37d3c04c99b12daa5d7b39390a87e8b92cfcaaa/main.go\",\n            \"description\": \"Description\",\n            \"content\": \"lorem ipsum\\n\\ntest123\\n\\n3847\"\n        },\n        {\n            \"gist_id\": \"9510acf1348c107e14fafe3fb3443405\",\n            \"gist_url\": \"https://api.github.com/gists/9510acf1348c107e14fafe3fb3443405\",\n            \"public\": false,\n            \"updated_at\": \"2020-03-30T14:04:30Z\",\n            \"filename\": \"hello.py\",\n            \"language\": \"Python\",\n            \"raw_url\": \"https://gist.githubusercontent.com/rithikjain/9510acf1348c107e14fafe3fb3443405/raw/15ce2b79703599af69f1cb3b77f8e2f5a0570fff/hello.py\",\n            \"description\": \"Updated description\",\n            \"content\": \"fmt.Println(\\\"Hello World\\\")\"\n        }\n    ],\n    \"message\": \"Files Retrieved\",\n    \"status\": 200\n}"}],"_postman_id":"96a05b0d-a1a6-4749-bd3c-5bb3f6e07871"},{"name":"http://localhost:3000/api/gists/create","id":"377d9ac5-82c9-4995-bc39-aea10526cc3c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwicm9sZSI6InVzZXIifQ.0o8HDmTK2oLxJ_f3ZtScEcfjNCZnQlS4RxCy2joj2yE","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"description\": \"Test Description\",\n\t\"public\": false,\n\t\"filename\": \"test.txt\",\n\t\"content\": \"This is test file which is created from postman\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/gists/create","urlObject":{"protocol":"http","port":"3000","path":["api","gists","create"],"host":["localhost"],"query":[{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[{"id":"3f13611a-1ba6-4d0f-96b5-ab66191e8a68","name":"http://localhost:3000/api/gists/create","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwicm9sZSI6InVzZXIifQ.0o8HDmTK2oLxJ_f3ZtScEcfjNCZnQlS4RxCy2joj2yE","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"description\": \"Test Description\",\n\t\"public\": false,\n\t\"filename\": \"test.txt\",\n\t\"content\": \"This is test file which is created from postman\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:3000/api/gists/create","protocol":"http","host":["localhost"],"port":"3000","path":["api","gists","create"],"query":[{"key":"","value":null,"type":"text","disabled":true}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 30 Mar 2020 14:35:26 GMT"},{"key":"Content-Length","value":"501"}],"cookie":[],"responseTime":null,"body":"{\n    \"files\": [\n        {\n            \"gist_id\": \"4a0c6cecb098ede49ccc71c1f77b9f2b\",\n            \"gist_url\": \"https://api.github.com/gists/4a0c6cecb098ede49ccc71c1f77b9f2b\",\n            \"public\": false,\n            \"updated_at\": \"2020-03-30T14:35:23Z\",\n            \"filename\": \"test.txt\",\n            \"language\": \"Text\",\n            \"raw_url\": \"https://gist.githubusercontent.com/rithikjain/4a0c6cecb098ede49ccc71c1f77b9f2b/raw/a269d61c1791e831782538ee5d30a5deafbf8258/test.txt\",\n            \"description\": \"Test Description\",\n            \"content\": \"This is test file which is created from postman\"\n        }\n    ],\n    \"message\": \"File Created\",\n    \"status\": 201\n}"}],"_postman_id":"377d9ac5-82c9-4995-bc39-aea10526cc3c"},{"name":"http://localhost:3000/api/gists/update","id":"571326ea-c7f0-42a9-97c5-9a2c6f552a1f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwicm9sZSI6InVzZXIifQ.0o8HDmTK2oLxJ_f3ZtScEcfjNCZnQlS4RxCy2joj2yE","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"gist_id\": \"fb5b49dcd9183de2f4a799c65d1561da\",\n\t\"description\": \"Updated Description\",\n\t\"filename\": \"test.txt\",\n\t\"content\": \"Updated Content\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/gists/update","urlObject":{"protocol":"http","port":"3000","path":["api","gists","update"],"host":["localhost"],"query":[{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[{"id":"52e23616-dc00-4c57-b8e7-aa294d32aea8","name":"http://localhost:3000/api/gists/update","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwicm9sZSI6InVzZXIifQ.0o8HDmTK2oLxJ_f3ZtScEcfjNCZnQlS4RxCy2joj2yE","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"gist_id\": \"fb5b49dcd9183de2f4a799c65d1561da\",\n\t\"description\": \"Updated Description\",\n\t\"filename\": \"test.txt\",\n\t\"content\": \"Updated Content\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:3000/api/gists/update","protocol":"http","host":["localhost"],"port":"3000","path":["api","gists","update"],"query":[{"key":"","value":null,"type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 30 Mar 2020 14:36:07 GMT"},{"key":"Content-Length","value":"905"}],"cookie":[],"responseTime":null,"body":"{\n    \"files\": [\n        {\n            \"gist_id\": \"fb5b49dcd9183de2f4a799c65d1561da\",\n            \"gist_url\": \"https://api.github.com/gists/fb5b49dcd9183de2f4a799c65d1561da\",\n            \"public\": false,\n            \"updated_at\": \"2020-03-30T14:36:04Z\",\n            \"filename\": \"main.go\",\n            \"language\": \"Go\",\n            \"raw_url\": \"https://gist.githubusercontent.com/rithikjain/fb5b49dcd9183de2f4a799c65d1561da/raw/f37d3c04c99b12daa5d7b39390a87e8b92cfcaaa/main.go\",\n            \"description\": \"Updated Description\",\n            \"content\": \"lorem ipsum\\n\\ntest123\\n\\n3847\"\n        },\n        {\n            \"gist_id\": \"fb5b49dcd9183de2f4a799c65d1561da\",\n            \"gist_url\": \"https://api.github.com/gists/fb5b49dcd9183de2f4a799c65d1561da\",\n            \"public\": false,\n            \"updated_at\": \"2020-03-30T14:36:04Z\",\n            \"filename\": \"test.txt\",\n            \"language\": \"Text\",\n            \"raw_url\": \"https://gist.githubusercontent.com/rithikjain/fb5b49dcd9183de2f4a799c65d1561da/raw/c873e5fbd2805b1004f9f5b639ad7fa31368bf6b/test.txt\",\n            \"description\": \"Updated Description\",\n            \"content\": \"Updated Content\"\n        }\n    ],\n    \"message\": \"File Updated\",\n    \"status\": 200\n}"}],"_postman_id":"571326ea-c7f0-42a9-97c5-9a2c6f552a1f"},{"name":"http://localhost:3000/api/gists/delete","id":"6e964a71-c1ef-486d-a59b-028f449bf231","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwicm9sZSI6InVzZXIifQ.0o8HDmTK2oLxJ_f3ZtScEcfjNCZnQlS4RxCy2joj2yE","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"gist_id\": \"fb5b49dcd9183de2f4a799c65d1561da\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/gists/delete","urlObject":{"protocol":"http","port":"3000","path":["api","gists","delete"],"host":["localhost"],"query":[{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[{"id":"97dbeb68-eab8-4628-b7cd-1dbe56e5daab","name":"http://localhost:3000/api/gists/delete","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwicm9sZSI6InVzZXIifQ.0o8HDmTK2oLxJ_f3ZtScEcfjNCZnQlS4RxCy2joj2yE","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"gist_id\": \"fb5b49dcd9183de2f4a799c65d1561da\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:3000/api/gists/delete","protocol":"http","host":["localhost"],"port":"3000","path":["api","gists","delete"],"query":[{"key":"","value":null,"type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 30 Mar 2020 14:36:49 GMT"},{"key":"Content-Length","value":"40"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Gist Deleted\",\n    \"status\": 200\n}"}],"_postman_id":"6e964a71-c1ef-486d-a59b-028f449bf231"}]}