{"info":{"_postman_id":"6aa16b14-9d02-4e00-b1d4-95054e6b73fe","name":"OSSNAPI v1.1 - Documents","description":"<html><head></head><body><p>This is the documentation for implementing OSSNAPI (Open Source Social Network API) to understand the models used to implement these API please have a look at OpenAPI defination of workspace or head to <a href=\"https://github.com/OSSNAPI/OpenAPI-spec/blob/main/socialAPI-spec.yaml\">https://github.com/OSSNAPI/OpenAPI-spec/blob/main/socialAPI-spec.yaml</a></p>\n<p>You can also run these API on the mock server</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"1722111","collectionId":"6aa16b14-9d02-4e00-b1d4-95054e6b73fe","publishedId":"TW6tLq53","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"2554ca"},"publishDate":"2021-01-24T12:41:47.000Z"},"item":[{"name":"Users","item":[{"name":"Get list of user","id":"1073b016-bdb2-4a21-b666-3a9d2239e263","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/users?offset=0&limit=20&type=all","description":"<p>Get lisst of all users in the application based on offset,limit and type (all,related,random)</p>\n","urlObject":{"path":["users"],"host":["http://localhost:3000"],"query":[{"description":{"content":"<p>Number of items to skip before returning the results.</p>\n","type":"text/plain"},"key":"offset","value":"0"},{"description":{"content":"<p>Maximum number of items to return.</p>\n","type":"text/plain"},"key":"limit","value":"20"},{"description":{"content":"<p>(Required) Type of user to be retrived.</p>\n","type":"text/plain"},"key":"type","value":"all"}],"variable":[]}},"response":[{"id":"f488a99a-b278-4ecc-8d10-9da6741add9e","name":"List of users","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/users?offset=0&limit=20&type=<string>","host":["http://localhost:3000"],"path":["users"],"query":[{"key":"offset","value":"0"},{"key":"limit","value":"20"},{"key":"type","value":"<string>"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n {\n  \"id\": 21,\n  \"name\": \"Ellie D\",\n  \"username\": \"its_ellie\",\n  \"email\": \"ellie@gmail.com\",\n  \"img\": \"exapmle.com/ellie/profile.png\",\n  \"meta\": {\n   \"gender\": \"Female\",\n   \"city\": \"New York\",\n   \"country\": \"USA\"\n  }\n },\n {\n  \"id\": 10,\n  \"name\": \"Pranjal Pandey\",\n  \"username\": \"physcocode\",\n  \"email\": \"pranjal@corpusvision.com\",\n  \"img\": \"exapmle.com/physcocode/profile.png\",\n  \"meta\": {\n   \"gender\": \"Male\",\n   \"city\": \"Mumbai\",\n   \"country\": \"India\"\n  }\n },\n {\n  \"id\": 10,\n  \"name\": \"Vineet Singh\",\n  \"username\": \"Veneed\",\n  \"email\": \"vineet@corpusvision.com\",\n  \"img\": \"exapmle.com/veneed/profile.png\",\n  \"meta\": {\n   \"gender\": \"Male\",\n   \"city\": \"Mumbai\",\n   \"country\": \"India\"\n  }\n }\n]"}],"_postman_id":"1073b016-bdb2-4a21-b666-3a9d2239e263"},{"name":"Create a new user","id":"75ea826e-13f6-4932-8a8b-14f6940820e3","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"<string>\",\n    \"username\": \"<string>\",\n    \"email\": \"<email>\",\n    \"id\": \"<long>\",\n    \"img\": \"<string>\",\n    \"meta\": \"<object>\"\n}"},"url":"http://localhost:3000/users","description":"<p>This api is used to create a new user, user just need basic info like name,username,email and image to store anything else you can user meta object. Eg to store date of birth and country you can do:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n        \"id\": 10,\n        \"name\": \"Pranjal Pandey\",\n        \"username\": \"physcocode\",\n        \"email\": \"pranjal@gmail.com\",\n        \"img\": \"exapmle.com/physcocode/profile.png\",\n        \"meta\":{\n            DOB:\"10-10-1997\"\n            Country:\"India\"\n          }\n}          \n</code></pre>","urlObject":{"path":["users"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"9b3518e8-df49-45bd-b455-bb7490d01152","name":"User successfully added","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": 21,\n    \"name\": \"Ellie D\",\n    \"username\": \"its_ellie\",\n    \"email\": \"ellie@gmail.com\",\n    \"img\": \"exapmle.com/ellie/profile.png\",\n    \"meta\": {\n        \"gender\": \"Female\",\n        \"city\": \"New York\",\n        \"country\": \"USA\"\n    }\n}"},"url":"http://localhost:3000/users"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 201,\n \"message\": \"user successfully created\"\n}"}],"_postman_id":"75ea826e-13f6-4932-8a8b-14f6940820e3"}],"id":"a8623e3b-cdd2-4a9e-8777-c4222439493d","description":"<p>Collection of API's to work with user model</p>\n","event":[{"listen":"prerequest","script":{"id":"f8294df6-0078-46ac-9d98-4747e00cb1fc","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"01bdeb9c-5ed3-4158-9c59-d950d1210580","type":"text/javascript","exec":[""]}}],"_postman_id":"a8623e3b-cdd2-4a9e-8777-c4222439493d"},{"name":"Single User","item":[{"name":"Get Detail of a user","id":"58d09352-c2f2-4c86-9dd6-2e3b73bebfb0","request":{"method":"GET","header":[],"url":"http://localhost:3000/users/:id","description":"<p>This API helps you get detail of a particular user including its metas</p>\n","urlObject":{"path":["users",":id"],"host":["http://localhost:3000"],"query":[],"variable":[{"id":"e94165d1-3443-4704-b46f-2969ad1fc366","description":{"content":"<p>(Required) ID of the user</p>\n","type":"text/plain"},"type":"string","value":"<long>","key":"id"}]}},"response":[{"id":"a1637808-3c46-44f6-9a43-f60b978f26d8","name":"Details about a user by ID","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/users/:id","host":["http://localhost:3000"],"path":["users",":id"],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"id\": 10,\n \"name\": \"Pranjal Pandey\",\n \"username\": \"physcocode\",\n \"email\": \"pranjal@corpusvision.com\",\n \"img\": \"exapmle.com/physcocode/profile.png\",\n \"meta\": {\n  \"gender\": \"Male\",\n  \"city\": \"Mumbai\",\n  \"country\": \"India\"\n }\n}"}],"_postman_id":"58d09352-c2f2-4c86-9dd6-2e3b73bebfb0"},{"name":"Update details of a user","id":"0dcecb1c-61f2-4c58-951f-46efde32fb62","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"<string>\",\n    \"username\": \"<string>\",\n    \"email\": \"<email>\",\n    \"id\": \"<long>\",\n    \"img\": \"<string>\",\n    \"meta\": \"<object>\"\n}"},"url":"http://localhost:3000/users/:id","description":"<p>This API is used to update detail of an existing user , you need to pass the complete user object and not just modified details~</p>\n","urlObject":{"path":["users",":id"],"host":["http://localhost:3000"],"query":[],"variable":[{"id":"979beca2-d780-4452-8590-b04ff65329f5","description":{"content":"<p>(Required) ID of the user</p>\n","type":"text/plain"},"type":"string","value":"<long>","key":"id"}]}},"response":[{"id":"b6996996-2b00-478f-b145-d510d6a87ccc","name":"Updated user detail","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": 21,\n    \"name\": \"Ellie D\",\n    \"username\": \"its_ellie\",\n    \"email\": \"ellie@gmail.com\",\n    \"img\": \"exapmle.com/ellie/profile.png\",\n    \"meta\": {\n        \"gender\": \"Female\",\n        \"city\": \"New York\",\n        \"country\": \"USA\"\n    }\n}"},"url":{"raw":"http://localhost:3000/users/:id","host":["http://localhost:3000"],"path":["users",":id"],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"id\": 10,\n \"name\": \"Pranjal P\",\n \"username\": \"physcocode\",\n \"email\": \"pranjal@corpusvision.com\",\n \"img\": \"exapmle.com/physcocode/profile.png\",\n \"meta\": {\n  \"gender\": \"Male\",\n  \"city\": \"Mumbai\",\n  \"country\": \"India\"\n }\n}"}],"_postman_id":"0dcecb1c-61f2-4c58-951f-46efde32fb62"},{"name":"Delete a single user","id":"6072ef41-c861-4411-b5cc-62cac77eb266","request":{"method":"DELETE","header":[],"url":"http://localhost:3000/users/:id","description":"<p>this deletes a user. \nCaution : Deleting a user may lead to corruption of objects user is attached to its better to soft delete a user rather than actually deleting from database</p>\n","urlObject":{"path":["users",":id"],"host":["http://localhost:3000"],"query":[],"variable":[{"id":"78052483-00ed-43e7-ba04-473461f8741a","description":{"content":"<p>(Required) ID of the user</p>\n","type":"text/plain"},"type":"string","value":"<long>","key":"id"}]}},"response":[{"id":"8c6b59eb-7d3e-419e-922a-617677493df3","name":"User successfully deleted","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:3000/users/:id","host":["http://localhost:3000"],"path":["users",":id"],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 200,\n \"message\": \"user successfully deleted\"\n}"}],"_postman_id":"6072ef41-c861-4411-b5cc-62cac77eb266"}],"id":"dabe9639-436b-4143-afcc-0a8ce0f628c4","description":"<p>Collection of API to work with single user</p>\n","event":[{"listen":"prerequest","script":{"id":"056486ef-5770-4bee-a2ce-a90c8f1d83a1","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"efd4d4ff-b119-43dd-a0a8-00798d61ddef","type":"text/javascript","exec":[""]}}],"_postman_id":"dabe9639-436b-4143-afcc-0a8ce0f628c4"},{"name":"Posts","item":[{"name":"Create a new post","id":"afd73500-828b-4ea3-963d-e7151f4f603a","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"owner\": \"<long>\",\n    \"visibility\": \"<string>\",\n    \"id\": \"<long>\",\n    \"type\": \"<string>\",\n    \"created_at\": \"<dateTime>\",\n    \"meta\": \"<object>\"\n}"},"url":"http://localhost:3000/posts","description":"<p>Post only requires owner,visibility and type. To set properties of a post and determine how its rendered on the screen you can use the <code>meta</code> object to store information about post\nHere are some exaples of a post:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code> {\n        \"id\": 13,\n        \"type\": \"Image\",\n        \"owner\": 10\n        \"created_at\": \"2017-07-21T17:32:28Z\",\n        \"visibility\": \"public\",\n        \"meta\": {\n            \"status\": \"I am a example status update with image\",\n            \"image\": \"example.com/image.png\"\n        }\n }        \n</code></pre><pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n        \"id\": 19,\n        \"type\": \"Text\",\n        \"owner\": 10\n        \"created_at\": \"2017-07-21T17:32:28Z\",\n        \"visibility\": \"public\",\n        \"meta\": {\n            \"status\": \"I am a example of text status update !\"\n        }\n    }\n</code></pre>","urlObject":{"path":["posts"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"1f9ad3e9-90fe-498e-9ef6-8000d28cafc8","name":"Post Successfully Added","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": 10,\n    \"type\": \"image\",\n    \"owner\": 10,\n    \"created_at\": \"2017-07-21T17:32:28Z\",\n    \"visibility\": \"public\",\n    \"meta\": {\n        \"status\": \"I am a example status update with image\",\n        \"image\": \"example.com/image.png\"\n    }\n}"},"url":"http://localhost:3000/posts"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 201,\n \"message\": \"post successfully created\"\n}"}],"_postman_id":"afd73500-828b-4ea3-963d-e7151f4f603a"},{"name":"Get list of post","id":"5bafe8c9-9193-4d2f-ae87-ec2c63268a8c","request":{"method":"GET","header":[],"url":"http://localhost:3000/posts?offset=0&limit=20&type=<string>","description":"<p>Gets the list of post based on offset, limit and type (all,following,me)</p>\n","urlObject":{"path":["posts"],"host":["http://localhost:3000"],"query":[{"description":{"content":"<p>Number of items to skip before returning the results.</p>\n","type":"text/plain"},"key":"offset","value":"0"},{"description":{"content":"<p>Maximum number of items to return.</p>\n","type":"text/plain"},"key":"limit","value":"20"},{"description":{"content":"<p>(Required) type of possts to be retrived.</p>\n","type":"text/plain"},"key":"type","value":"<string>"}],"variable":[]}},"response":[{"id":"405558f1-f3e4-43e7-94b7-2187cc051165","name":"List of post","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/posts?offset=0&limit=20&type=<string>","host":["http://localhost:3000"],"path":["posts"],"query":[{"key":"offset","value":"0"},{"key":"limit","value":"20"},{"key":"type","value":"<string>"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n {\n  \"id\": 13,\n  \"type\": \"Image\",\n  \"owner\": {\n   \"id\": 10,\n   \"name\": \"Pranjal Pandey\",\n   \"username\": \"physcocoede\",\n   \"image\": \"example.com/physcocode/profile.png\"\n  },\n  \"created_at\": \"2017-07-21T17:32:28Z\",\n  \"visibility\": \"public\",\n  \"meta\": {\n   \"status\": \"I am a example status update with image\",\n   \"image\": \"example.com/image.png\"\n  },\n  \"like_count\": 9,\n  \"comment_count\": 12\n },\n {\n  \"id\": 19,\n  \"type\": \"Text\",\n  \"owner\": {\n   \"id\": 10,\n   \"name\": \"Pranjal Pandey\",\n   \"username\": \"physcocoede\",\n   \"image\": \"example.com/physcocode/profile.png\"\n  },\n  \"created_at\": \"2017-07-21T17:32:28Z\",\n  \"visibility\": \"public\",\n  \"meta\": {\n   \"status\": \"I am a example of text status update !\"\n  },\n  \"like_count\": 22,\n  \"comment_count\": 4\n },\n {\n  \"id\": 33,\n  \"type\": \"Video\",\n  \"owner\": {\n   \"id\": 12,\n   \"name\": \"Vineet Singh\",\n   \"username\": \"vineed\",\n   \"image\": \"example.com/vineed/profile.png\"\n  },\n  \"created_at\": \"2017-07-21T17:32:28Z\",\n  \"visibility\": \"public\",\n  \"meta\": {\n   \"status\": \"I am a example of text status update !\",\n   \"video\": \"example.com/video.mp4\"\n  },\n  \"like_count\": 22,\n  \"comment_count\": 4\n },\n {\n  \"id\": 23,\n  \"type\": \"Slideshow\",\n  \"owner\": {\n   \"id\": 12,\n   \"name\": \"Vineet Singh\",\n   \"username\": \"vineed\",\n   \"image\": \"example.com/vineed/profile.png\"\n  },\n  \"created_at\": \"2017-07-21T17:32:28Z\",\n  \"visibility\": \"public\",\n  \"meta\": {\n   \"status\": \"I am a example of slideshow update !\",\n   \"image\": [\n    \"example.com/image1.png\",\n    \"example.com/image2.png\",\n    \"example.com/image3.png\"\n   ]\n  },\n  \"like_count\": 28,\n  \"comment_count\": 9\n }\n]"}],"_postman_id":"5bafe8c9-9193-4d2f-ae87-ec2c63268a8c"}],"id":"11c46597-0ba9-448a-a51a-78ac3eea49f7","description":"<p>Collection of API to work with posts. Posts is the backbone of Social Networking system , you can create something like a \"tweet\" or facebook's \"wall post\" using posts API</p>\n","event":[{"listen":"prerequest","script":{"id":"3c3c3e07-2939-4e6d-8837-98530915e580","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"c577e1cf-30ff-4ab8-83c1-d0dbdca64f31","type":"text/javascript","exec":[""]}}],"_postman_id":"11c46597-0ba9-448a-a51a-78ac3eea49f7"},{"name":"Single Post","item":[{"name":"Returns details of a post","id":"9d3ac99e-afa0-4097-bfe7-0c046b18d07c","request":{"method":"GET","header":[],"url":"http://localhost:3000/posts/:id","description":"<p>Returns detail of a post, user id is replaced with summary of user</p>\n","urlObject":{"path":["posts",":id"],"host":["http://localhost:3000"],"query":[],"variable":[{"id":"a63e3d3c-5051-49d7-8eec-21cf0b915610","description":{"content":"<p>(Required) ID of the post</p>\n","type":"text/plain"},"type":"string","value":"<long>","key":"id"}]}},"response":[{"id":"a9a24a33-b8eb-4b9f-aa8c-892b3c87a576","name":"Details about a post by its ID","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/posts/:id","host":["http://localhost:3000"],"path":["posts",":id"],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"id\": 13,\n \"type\": \"Image\",\n \"owner\": {\n  \"id\": 10,\n  \"name\": \"Pranjal Pandey\",\n  \"username\": \"physcocoede\",\n  \"image\": \"example.com/physcocode/profile.png\"\n },\n \"created_at\": \"2017-07-21T17:32:28Z\",\n \"visibility\": \"public\",\n \"meta\": {\n  \"status\": \"I am a example status update with image\",\n  \"image\": \"example.com/image.png\"\n },\n \"like_count\": 9,\n \"comment_count\": 12\n}"}],"_postman_id":"9d3ac99e-afa0-4097-bfe7-0c046b18d07c"},{"name":"Delete a single post","id":"47a0c083-4e4f-4a77-962d-7d8bbb051504","request":{"method":"DELETE","header":[],"url":"http://localhost:3000/posts/:id","description":"<p>Delets a post using post id</p>\n","urlObject":{"path":["posts",":id"],"host":["http://localhost:3000"],"query":[],"variable":[{"id":"e5594cbf-19d8-4707-ba0a-d60395523af8","description":{"content":"<p>(Required) ID of the post</p>\n","type":"text/plain"},"type":"string","value":"<long>","key":"id"}]}},"response":[{"id":"f2f5cf7c-9931-4fa3-a1ba-91d7a70a2aed","name":"Post successfully deleted","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:3000/posts/:id","host":["http://localhost:3000"],"path":["posts",":id"],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 200,\n \"message\": \"post successfully deleted\"\n}"}],"_postman_id":"47a0c083-4e4f-4a77-962d-7d8bbb051504"}],"id":"ac87d2ed-e441-4ce3-86c6-79ee4a54c7aa","description":"<p>API to work with single post objects</p>\n","event":[{"listen":"prerequest","script":{"id":"5380e1b3-7af3-4d0f-8e93-e95f5a16a5ca","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"d973439b-1cb9-42eb-b4cc-c45453477b28","type":"text/javascript","exec":[""]}}],"_postman_id":"ac87d2ed-e441-4ce3-86c6-79ee4a54c7aa"},{"name":"Comments","item":[{"name":"Create a new comment","id":"43915ad9-a4bb-4fb9-9373-31f47d3a6b2f","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"post\": \"<integer>\",\n    \"owner\": \"<integer>\",\n    \"body\": \"<string>\",\n    \"id\": \"<long>\",\n    \"created_at\": \"<dateTime>\"\n}"},"url":"http://localhost:3000/comments","description":"<p>This API creates a new commemnt and attaches it to a post . Here is an example comment :</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n        \"id\": 23,\n        \"post\": 32,\n        \"owner\": 10,\n        \"body\": \"I like this post\",\n        \"created_at\": \"2017-07-21T17:32:28Z\"\n}\n</code></pre>","urlObject":{"path":["comments"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"93c4e37c-d421-40e1-9108-f658e8185510","name":"Comment Successfuly added","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": 23,\n    \"post\": 32,\n    \"owner\": 10,\n    \"body\": \"i like this post\",\n    \"created_at\": \"2017-07-21T17:32:28Z\"\n}"},"url":"http://localhost:3000/comments"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 201,\n \"message\": \"comment Successfuly Added\"\n}"}],"_postman_id":"43915ad9-a4bb-4fb9-9373-31f47d3a6b2f"},{"name":"Get list of comments","id":"236e0337-fae6-4370-9683-d37e6d00210f","request":{"method":"GET","header":[],"url":"http://localhost:3000/comments?post_id=<integer>","description":"<p>Get list of all the comments of a post using post_id</p>\n","urlObject":{"path":["comments"],"host":["http://localhost:3000"],"query":[{"description":{"content":"<p>(Required) Type of user to be retrived.</p>\n","type":"text/plain"},"key":"post_id","value":"<integer>"}],"variable":[]}},"response":[{"id":"669c1cdb-2155-4fcf-8674-dcbc30e445c2","name":"List comment for a post","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/comments?post_id=<integer>","host":["http://localhost:3000"],"path":["comments"],"query":[{"key":"post_id","value":"<integer>"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n {\n  \"id\": 23,\n  \"post\": 32,\n  \"owner\": 10,\n  \"body\": \"I like this post\",\n  \"created_at\": \"2017-07-21T17:32:28Z\"\n },\n {\n  \"id\": 24,\n  \"post\": 32,\n  \"owner\": 21,\n  \"body\": \"This post seems great\",\n  \"created_at\": \"2017-07-21T17:32:28Z\"\n },\n {\n  \"id\": 25,\n  \"post\": 32,\n  \"owner\": 14,\n  \"body\": \"Hahah this is funny\",\n  \"created_at\": \"2017-07-21T17:32:28Z\"\n }\n]"}],"_postman_id":"236e0337-fae6-4370-9683-d37e6d00210f"}],"id":"bfb38041-5558-42c4-bd01-eaff91d06a49","description":"<p>API to work with comments that are attached to a post</p>\n","event":[{"listen":"prerequest","script":{"id":"f6bf26b2-af68-4b7f-b036-f616495369e8","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"ff9afe2a-dc2b-4474-8065-35240be05dcf","type":"text/javascript","exec":[""]}}],"_postman_id":"bfb38041-5558-42c4-bd01-eaff91d06a49"},{"name":"Single Comment","item":[{"name":"Delete a comment","id":"927cf2dd-11f9-44fd-b78f-4bebd11600cf","request":{"method":"DELETE","header":[],"url":"http://localhost:3000/comments/:id","description":"<p>Deletes a comment using the comment id</p>\n","urlObject":{"path":["comments",":id"],"host":["http://localhost:3000"],"query":[],"variable":[{"id":"2c47ca71-7e27-494e-9196-05f6074ac535","description":{"content":"<p>(Required) ID of the comment</p>\n","type":"text/plain"},"type":"string","value":"<long>","key":"id"}]}},"response":[{"id":"b4d5d3d8-fc87-4965-b379-7ff087328fd2","name":"Comment Successfuly deleted","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:3000/comments/:id","host":["http://localhost:3000"],"path":["comments",":id"],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 200,\n \"message\": \"comment Successfuly Deleted\"\n}"}],"_postman_id":"927cf2dd-11f9-44fd-b78f-4bebd11600cf"},{"name":"Update a comment","id":"f82e3a19-a30e-4fb9-8c0b-a40f77d7693b","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"post\": \"<integer>\",\n    \"owner\": \"<integer>\",\n    \"body\": \"<string>\",\n    \"id\": \"<long>\",\n    \"created_at\": \"<dateTime>\"\n}"},"url":"http://localhost:3000/comments/:id","description":"<p>Updates a comment , you have to send the whole comment object in this request and not just the updated comment</p>\n","urlObject":{"path":["comments",":id"],"host":["http://localhost:3000"],"query":[],"variable":[{"id":"2d7df824-dacb-4e54-b238-ac5a2789d6e5","description":{"content":"<p>(Required) ID of the comment</p>\n","type":"text/plain"},"type":"string","value":"<long>","key":"id"}]}},"response":[{"id":"cfff9d87-08c7-41d5-9208-773b779b0588","name":"Comment after being updated","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": 23,\n    \"post\": 32,\n    \"owner\": 10,\n    \"body\": \"i like this post\",\n    \"created_at\": \"2017-07-21T17:32:28Z\"\n}"},"url":{"raw":"http://localhost:3000/comments/:id","host":["http://localhost:3000"],"path":["comments",":id"],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"id\": 23,\n \"post\": 32,\n \"owner\": 10,\n \"body\": \"The updated comment\",\n \"created_at\": \"2017-07-21T17:32:28Z\"\n}"}],"_postman_id":"f82e3a19-a30e-4fb9-8c0b-a40f77d7693b"}],"id":"2de831d9-b7b7-4500-a330-17465e3d90b9","description":"<p>Collection of API for working with a single comment</p>\n","event":[{"listen":"prerequest","script":{"id":"da373ae4-4d9d-4db1-8534-9988a08626d7","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a4230ec4-d7d3-475f-8b1e-a0e4d0e958b4","type":"text/javascript","exec":[""]}}],"_postman_id":"2de831d9-b7b7-4500-a330-17465e3d90b9"},{"name":"Likes","item":[{"name":"Like a post","id":"0807018d-f57b-4811-b7bd-ed5d996c3fdb","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"post\": \"<integer>\",\n    \"owner\": \"<integer>\",\n    \"id\": \"<long>\",\n    \"created_at\": \"<dateTime>\"\n}"},"url":"http://localhost:3000/likes","description":"<p>A post request to this api will create a new like with data of user who likes the post</p>\n","urlObject":{"path":["likes"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"7bfd98b3-cfde-447e-beea-6bb0390f25f1","name":"Post successfully liked","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": 10,\n    \"post\": 25,\n    \"owner\": 10,\n    \"created_at\": \"2017-07-21T17:32:28Z\"\n}"},"url":"http://localhost:3000/likes"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 201,\n \"message\": \"Post successfully liked\"\n}"}],"_postman_id":"0807018d-f57b-4811-b7bd-ed5d996c3fdb"},{"name":"Get users who likes the post","id":"ebe234c3-470e-4a6a-ab8a-1d5bdda84483","request":{"method":"GET","header":[],"url":"http://localhost:3000/likes?post_id=<integer>","description":"<p>This api get all the likes of the post . This API can be used to display users who have like the post</p>\n","urlObject":{"path":["likes"],"host":["http://localhost:3000"],"query":[{"description":{"content":"<p>(Required) id of post whose likes need to be retrived</p>\n","type":"text/plain"},"key":"post_id","value":"<integer>"}],"variable":[]}},"response":[{"id":"60d6ab20-5d50-4d4a-81f3-0c1906c1dbc5","name":"List user that likes post","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/likes?post_id=<integer>","host":["http://localhost:3000"],"path":["likes"],"query":[{"key":"post_id","value":"<integer>"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n {\n  \"id\": 10,\n  \"post\": 25,\n  \"owner\": {\n   \"id\": 10,\n   \"name\": \"Pranjal Pandey\",\n   \"username\": \"physcocoede\",\n   \"image\": \"example.com/physcocode/profile.png\"\n  },\n  \"created_at\": \"2017-07-21T17:32:28Z\"\n },\n {\n  \"id\": 13,\n  \"post\": 25,\n  \"owner\": {\n   \"id\": 12,\n   \"name\": \"Ellie D\",\n   \"username\": \"its_ellie\",\n   \"image\": \"example.com/ellie/profile.png\"\n  },\n  \"created_at\": \"2017-07-21T17:32:28Z\"\n },\n {\n  \"id\": 23,\n  \"post\": 25,\n  \"owner\": {\n   \"id\": 15,\n   \"name\": \"Vineet Singh\",\n   \"username\": \"vineed\",\n   \"image\": \"example.com/vineed/profile.png\"\n  },\n  \"created_at\": \"2017-07-21T17:32:28Z\"\n }\n]"}],"_postman_id":"ebe234c3-470e-4a6a-ab8a-1d5bdda84483"},{"name":"Unlike a post","id":"95650470-b264-478b-a2b0-d5d8f4ee52c6","request":{"method":"DELETE","header":[],"url":"http://localhost:3000/likes?post_id=<long>&user_id=<long>","description":"<p>Deleting like obhext will unlike the post. Deletion is done using post_id and user_id unlike other API's where deletion is done using unique id of object.</p>\n","urlObject":{"path":["likes"],"host":["http://localhost:3000"],"query":[{"description":{"content":"<p>(Required) ID of post</p>\n","type":"text/plain"},"key":"post_id","value":"<long>"},{"description":{"content":"<p>(Required) ID of user</p>\n","type":"text/plain"},"key":"user_id","value":"<long>"}],"variable":[]}},"response":[{"id":"3681af55-6cd4-41f9-82c7-5eb1d6a1441f","name":"Post successfully unliked","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:3000/likes?post_id=<long>&user_id=<long>","host":["http://localhost:3000"],"path":["likes"],"query":[{"key":"post_id","value":"<long>"},{"key":"user_id","value":"<long>"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 200,\n \"message\": \"Post successfully unliked\"\n}"}],"_postman_id":"95650470-b264-478b-a2b0-d5d8f4ee52c6"}],"id":"94d843f8-29cc-4b06-b201-64998f94ab69","description":"<p>Collection of API for working with likes </p>\n","event":[{"listen":"prerequest","script":{"id":"85ad256f-e250-4150-b1ef-8b24500f3992","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"f959c017-3e10-46e5-9f5b-32b0890a3da2","type":"text/javascript","exec":[""]}}],"_postman_id":"94d843f8-29cc-4b06-b201-64998f94ab69"},{"name":"Relations","item":[{"name":"Create new relation","id":"6c7cfd9d-3c2f-4dab-b46e-2ca20519d51b","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"owner\": \"<integer>\",\n    \"user\": \"<integer>\",\n    \"type\": \"<string>\",\n    \"id\": \"<long>\",\n    \"bidirectional\": \"<boolean>\",\n    \"meta\": \"<object>\"\n}"},"url":"http://localhost:3000/relations","description":"<p>Create a new relation between two user . Relation can be both bidirectional like \"friends\" or unidirectional like \"follow\". You can also add extra information to these relations using <code>meta</code> object. Here are few examples of relations:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code> {\n        \"id\": 10,\n        \"owner\": 10,\n        \"user\": 14\n        \"type\": \"follow\",\n        \"bidirectional\": false,\n        \"created_at\": \"2017-07-21T17:32:28Z\",\n        \"meta\": {}\n    }\n</code></pre><pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code> {\n        \"id\": 12,\n        \"owner\": 10,\n        \"user\": 13\n        \"type\": \"friend\",\n        \"bidirectional\": true,\n        \"created_at\": \"2017-07-21T17:32:28Z\",\n        \"meta\": {\n            \"accepted\":false\n        }\n    }\n</code></pre>","urlObject":{"path":["relations"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"b8329e01-cead-45d3-b883-b14604d97b27","name":"Relation successfully created","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": 11,\n    \"owner\": 10,\n    \"user\": 12,\n    \"type\": \"follow\",\n    \"bidirectional\": false,\n    \"meta\": {}\n}"},"url":"http://localhost:3000/relations"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 201,\n \"message\": \"Relation successfully created\"\n}"}],"_postman_id":"6c7cfd9d-3c2f-4dab-b46e-2ca20519d51b"},{"name":"Get all relation of a user","id":"a772e6e5-ee58-4551-b1dd-c1362adee4ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/relations?user_id=<long>","description":"<p>This api gets all the relations of a user with other users</p>\n","urlObject":{"path":["relations"],"host":["http://localhost:3000"],"query":[{"description":{"content":"<p>(Required) id of users whose relations is to be listed</p>\n","type":"text/plain"},"key":"user_id","value":"<long>"}],"variable":[]}},"response":[{"id":"fb83f3ac-c2bb-4fe5-beaf-4214eed40fd5","name":"List user that are related to current user","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/relations?user_id=<integer>","host":["http://localhost:3000"],"path":["relations"],"query":[{"key":"user_id","value":"<integer>"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n {\n  \"id\": 10,\n  \"owner\": 25,\n  \"user\": {\n   \"id\": 10,\n   \"name\": \"Pranjal Pandey\",\n   \"username\": \"physcocoede\",\n   \"image\": \"example.com/physcocode/profile.png\"\n  },\n  \"type\": \"follow\",\n  \"bidirectional\": false,\n  \"created_at\": \"2017-07-21T17:32:28Z\",\n  \"meta\": {}\n },\n {\n  \"id\": 13,\n  \"owner\": 25,\n  \"user\": {\n   \"id\": 12,\n   \"name\": \"Ellie D\",\n   \"username\": \"its_ellie\",\n   \"image\": \"example.com/ellie/profile.png\"\n  },\n  \"type\": \"follow\",\n  \"bidirectional\": false,\n  \"created_at\": \"2017-07-21T17:32:28Z\",\n  \"meta\": {}\n },\n {\n  \"id\": 23,\n  \"owner\": 25,\n  \"user\": {\n   \"id\": 15,\n   \"name\": \"Vineet Singh\",\n   \"username\": \"vineed\",\n   \"image\": \"example.com/vineed/profile.png\"\n  },\n  \"type\": \"follow\",\n  \"bidirectional\": false,\n  \"created_at\": \"2017-07-21T17:32:28Z\",\n  \"meta\": {}\n }\n]"}],"_postman_id":"a772e6e5-ee58-4551-b1dd-c1362adee4ed"},{"name":"Remove relation","id":"d42df257-7f16-4375-9466-2bce96c8c845","request":{"method":"DELETE","header":[],"url":"http://localhost:3000/relations?owner_id=<long>&user_id=<long>","description":"<p>Deleting relation works like \"unfriending\" and \"unfollowing\"</p>\n","urlObject":{"path":["relations"],"host":["http://localhost:3000"],"query":[{"description":{"content":"<p>(Required) ID of user who is owner of relation (\"Followed by\")</p>\n","type":"text/plain"},"key":"owner_id","value":"<long>"},{"description":{"content":"<p>(Required) ID of user whom the owner is related to (\"Followed to\")</p>\n","type":"text/plain"},"key":"user_id","value":"<long>"}],"variable":[]}},"response":[{"id":"33052dd4-d334-4f03-944d-b2bc8b00e0d1","name":"Relation successfully removed","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:3000/relations?owner_id=<long>&user_id=<long>","host":["http://localhost:3000"],"path":["relations"],"query":[{"key":"owner_id","value":"<long>"},{"key":"user_id","value":"<long>"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 200,\n \"message\": \"Relation successfully removed \"\n}"}],"_postman_id":"d42df257-7f16-4375-9466-2bce96c8c845"}],"id":"c7f12f23-b9d6-43cd-8918-699d91b88630","description":"<p>Collection of API to manage relation between two users . The relations can be as simple as 'follow' or 'friends' or as complex as circles introduced by google +</p>\n","event":[{"listen":"prerequest","script":{"id":"f587d59f-ab7c-441d-a903-95920b2ee513","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"9b27f469-5f45-40e3-91f1-8bf58a0e67bc","type":"text/javascript","exec":[""]}}],"_postman_id":"c7f12f23-b9d6-43cd-8918-699d91b88630"},{"name":"Messages","item":[{"name":"Send message to a room","id":"8c910fd1-a57a-48cb-8e20-080f1c5b6f04","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"<long>\",\n    \"room\": \"<integer>\",\n    \"owner\": \"<integer>\",\n    \"message\": \"<string>\",\n    \"created_at\": \"<dateTime>\"\n}"},"url":"http://localhost:3000/messages","description":"<p>This API sends a message to a room , you need to have a room before sending message, rooms can be a 1-1 room or a group room</p>\n","urlObject":{"path":["messages"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"b66bfce7-5ed2-4245-89ad-bc5b82ee7cc2","name":"Message Successfully sent","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": 12,\n    \"room\": 32,\n    \"owner\": 12,\n    \"message\": \"Hi whats up ?\"\n}"},"url":"http://localhost:3000/messages"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 200,\n \"message\": \"Message Successfully sent\"\n}"}],"_postman_id":"8c910fd1-a57a-48cb-8e20-080f1c5b6f04"},{"name":"Get all messages of a room","id":"55acc02b-fcb7-4e73-b8fd-15e020ddf2a7","request":{"method":"GET","header":[],"url":"http://localhost:3000/messages?room_id=<integer>","description":"<p>Gets all the messafes of a room using room_id</p>\n","urlObject":{"path":["messages"],"host":["http://localhost:3000"],"query":[{"description":{"content":"<p>(Required) id of room whose message to get</p>\n","type":"text/plain"},"key":"room_id","value":"<integer>"}],"variable":[]}},"response":[{"id":"00ca713f-826c-43be-b9f8-50170f138612","name":"List of messages in a room","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/messages?room_id=<integer>","host":["http://localhost:3000"],"path":["messages"],"query":[{"key":"room_id","value":"<integer>"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n {\n  \"id\": 13,\n  \"room\": 25,\n  \"owner\": 12,\n  \"created_at\": \"2017-07-21T17:32:28Z\",\n  \"message\": \"Hi\"\n },\n {\n  \"id\": 16,\n  \"room\": 25,\n  \"owner\": 13,\n  \"created_at\": \"2017-07-21T17:32:28Z\",\n  \"message\": \"Hey, wassup?\"\n },\n {\n  \"id\": 18,\n  \"room\": 25,\n  \"owner\": 12,\n  \"created_at\": \"2017-07-21T17:32:28Z\",\n  \"message\": \"I am good\"\n }\n]"}],"_postman_id":"55acc02b-fcb7-4e73-b8fd-15e020ddf2a7"},{"name":"Delete all messages of a room","id":"01ece0cb-1bb6-4c2d-a988-937ed1075f10","request":{"method":"DELETE","header":[],"url":"http://localhost:3000/messages?room_id=<integer>","description":"<p>Deletes all messages inside a room , comes in handy if you are deleting a room</p>\n","urlObject":{"path":["messages"],"host":["http://localhost:3000"],"query":[{"description":{"content":"<p>(Required) id of room whose message to delete</p>\n","type":"text/plain"},"key":"room_id","value":"<integer>"}],"variable":[]}},"response":[{"id":"aa6bb7fe-023e-4fbe-9ddc-0d357931ca23","name":"Successfully deleted all message in room","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:3000/messages?room_id=<integer>","host":["http://localhost:3000"],"path":["messages"],"query":[{"key":"room_id","value":"<integer>"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 200,\n \"message\": \"Successfully deleted all message in room\"\n}"}],"_postman_id":"01ece0cb-1bb6-4c2d-a988-937ed1075f10"},{"name":"Delete a single message","id":"ffc64036-815d-4dd1-a4b0-1f306315f6ac","request":{"method":"DELETE","header":[],"url":"http://localhost:3000/messages/:id","description":"<p>Deletes a single message \nNote: Make sure only the owner of message should be able to delete the message</p>\n","urlObject":{"path":["messages",":id"],"host":["http://localhost:3000"],"query":[],"variable":[{"id":"a2e9bd2f-e00b-4523-b03a-64734ebfc906","description":{"content":"<p>(Required) id of message to delete</p>\n","type":"text/plain"},"type":"string","value":"<integer>","key":"id"}]}},"response":[{"id":"1c97f64c-f889-4aed-82cb-95bc935eb992","name":"Successfully deleted message","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:3000/messages/:id","host":["http://localhost:3000"],"path":["messages",":id"],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 200,\n \"message\": \"Successfully deleted message\"\n}"}],"_postman_id":"ffc64036-815d-4dd1-a4b0-1f306315f6ac"}],"id":"af050ba8-d091-4d5b-8741-a3e5616dda0b","description":"<p>Collection of API to work with messages or can be used for chats</p>\n","event":[{"listen":"prerequest","script":{"id":"00932bb4-8f2d-4afe-98ee-b6485d45bb42","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"674b92bb-023a-466e-9270-1889ea576b56","type":"text/javascript","exec":[""]}}],"_postman_id":"af050ba8-d091-4d5b-8741-a3e5616dda0b"},{"name":"Message Rooms","item":[{"name":"Create a new Room","id":"df51c753-d8cc-4668-8c00-2f191866f350","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"<long>\",\n    \"type\": \"<string>\",\n    \"owner\": \"<integer>\",\n    \"users\": \"<array>\"\n}"},"url":"http://localhost:3000/messages/rooms","description":"<p>Creates a 1-1  / group , make <code>users</code> an array of user id if its a group , make <code>users</code> a integer if its a 1-1 room</p>\n","urlObject":{"path":["messages","rooms"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"907aa55e-d91c-4df0-bb61-cdf4812db844","name":"Room successfully created","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": \"<long>\",\n    \"type\": \"<string>\",\n    \"owner\": \"<integer>\",\n    \"users\": \"<string>\"\n}"},"url":"http://localhost:3000/messages/rooms"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 200,\n \"message\": \"Room successfully created\"\n}"}],"_postman_id":"df51c753-d8cc-4668-8c00-2f191866f350"},{"name":"Delete a room","id":"e76b24ca-a566-48c4-8778-4c3d5789aa10","request":{"method":"DELETE","header":[],"url":"http://localhost:3000/messages/rooms?id=<integer>","description":"<p>Deletes a room , its good practise to call api to delete all messages of a room when room is being deleted</p>\n","urlObject":{"path":["messages","rooms"],"host":["http://localhost:3000"],"query":[{"description":{"content":"<p>(Required) id of room to delete</p>\n","type":"text/plain"},"key":"id","value":"<integer>"}],"variable":[]}},"response":[{"id":"82e6263a-2c39-41eb-b563-dd4d2ae94ef1","name":"Successfully deleted room","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:3000/messages/rooms?id=<integer>","host":["http://localhost:3000"],"path":["messages","rooms"],"query":[{"key":"id","value":"<integer>"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 200,\n \"message\": \"Successfully deleted room\"\n}"}],"_postman_id":"e76b24ca-a566-48c4-8778-4c3d5789aa10"}],"id":"43a48309-a0eb-469f-95d9-848c5a5df3ce","description":"<p>Collection of API to create and delete Message rooms / chat rooms</p>\n","event":[{"listen":"prerequest","script":{"id":"22f8291b-fdbf-4754-8efa-d913d3a8c3cf","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"70760f9e-705e-474e-bb05-079f5f4a2295","type":"text/javascript","exec":[""]}}],"_postman_id":"43a48309-a0eb-469f-95d9-848c5a5df3ce"},{"name":"Feeds","item":[{"name":"Create new Activity in Feed","id":"5ac1d6d4-2812-42ff-af15-eaac3d4ce12b","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"owner\": \"<integer>\",\n    \"action\": \"<string>\",\n    \"object\": \"<integer>\",\n    \"type\": \"<string>\",\n    \"id\": \"<long>\"\n}"},"url":"http://localhost:3000/feeds","description":"<p>Create a new activity . Example of activity are <code>Pranjal followed Vinnet</code> <code>Vinneet liked a post</code>. here are few example of activity :</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>    {\n        \"id\": 12,\n        \"owner\": 10\n        \"action\": \"liked\",\n        //Id of the post\n        \"object\": 10 \n        \"type\": \"like\"\n    }\n</code></pre><pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>  {\n        \"id\": 13,\n        \"owner\": 10\n        \"action\": \"followed\",\n        // id of the user followed\n        \"object\": 12\n        \"type\": \"follow\"\n    }\n</code></pre>","urlObject":{"path":["feeds"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"5d9ba183-bb4c-455b-9dfd-7c22c5a84faa","name":"Feed successfully added","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": 5,\n    \"owner\": 10,\n    \"action\": \"followed\",\n    \"object\": 20,\n    \"type\": \"follow\",\n    \"created_at\": \"2017-07-21T17:32:28Z\"\n}"},"url":"http://localhost:3000/feeds"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 200,\n \"message\": \"Message Successfully sent\"\n}"}],"_postman_id":"5ac1d6d4-2812-42ff-af15-eaac3d4ce12b"},{"name":"Get all activities in feed","id":"130bc231-4088-44f9-9e77-75c2bc646a35","request":{"method":"GET","header":[],"url":"http://localhost:3000/feeds?type=<string>","description":"<p>Returns all activities in feed user_id is replaced by user object, object_id is replaced by actual object (User or Post)</p>\n","urlObject":{"path":["feeds"],"host":["http://localhost:3000"],"query":[{"description":{"content":"<p>(Required) type of feed</p>\n","type":"text/plain"},"key":"type","value":"<string>"}],"variable":[]}},"response":[{"id":"99b13575-a734-4349-9623-2a32934d9d59","name":"List of Activities in feed","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/feeds?type=<string>","host":["http://localhost:3000"],"path":["feeds"],"query":[{"key":"type","value":"<string>"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n {\n  \"id\": 12,\n  \"owner\": {\n   \"id\": 10,\n   \"name\": \"Pranjal Pandey\",\n   \"username\": \"physcocode\"\n  },\n  \"action\": \"liked\",\n  \"object\": {\n   \"id\": 10,\n   \"type\": \"Image\",\n   \"owner\": {\n    \"id\": 10,\n    \"name\": \"Pranjal Pandey\",\n    \"username\": \"physcocoede\",\n    \"image\": \"example.com/physcocode/profile.png\"\n   },\n   \"created_at\": \"2017-07-21T17:32:28Z\",\n   \"visibility\": \"public\",\n   \"meta\": {\n    \"status\": \"I am a example status update with image\",\n    \"image\": \"example.com/image.png\"\n   },\n   \"like_count\": 9,\n   \"comment_count\": 12\n  },\n  \"type\": \"like\"\n },\n {\n  \"id\": 13,\n  \"owner\": {\n   \"id\": 10,\n   \"name\": \"Pranjal Pandey\",\n   \"username\": \"physcocode\"\n  },\n  \"action\": \"followed\",\n  \"object\": {\n   \"id\": 12,\n   \"name\": \"Vineet Singh\",\n   \"username\": \"vineed\"\n  },\n  \"type\": \"follow\"\n }\n]"}],"_postman_id":"130bc231-4088-44f9-9e77-75c2bc646a35"},{"name":"Delete an activity from feed","id":"8a415561-7670-4242-8250-0a86c6ac435a","request":{"method":"DELETE","header":[],"url":"http://localhost:3000/feeds/:id","description":"<p>Deletes an activity from the feed</p>\n","urlObject":{"path":["feeds",":id"],"host":["http://localhost:3000"],"query":[],"variable":[{"id":"06a12841-79d7-4f77-9e2a-1758eaf2124f","description":{"content":"<p>(Required) id of feed activity to delete</p>\n","type":"text/plain"},"type":"string","value":"<integer>","key":"id"}]}},"response":[{"id":"59eb1fbd-97f1-42f8-87ad-8b98c248d52d","name":"Successfully deleted activity from feed","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:3000/feeds/:id","host":["http://localhost:3000"],"path":["feeds",":id"],"variable":[{"key":"id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 200,\n \"message\": \"Successfully deleted activity from feed\"\n}"}],"_postman_id":"8a415561-7670-4242-8250-0a86c6ac435a"}],"id":"fe484691-2741-44f0-a4b7-1ccb951110f4","description":"<p>Collection of API for working with activity feed</p>\n","event":[{"listen":"prerequest","script":{"id":"a53de69b-8f6a-44e3-84f5-62a790406b3c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"5b853e95-a5f6-4092-9257-35c8bc867d7c","type":"text/javascript","exec":[""]}}],"_postman_id":"fe484691-2741-44f0-a4b7-1ccb951110f4"}],"event":[{"listen":"prerequest","script":{"id":"09a88f8e-006f-49c0-a75d-a2d16cd73936","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"acf9fd58-5dcc-45a6-a199-807c4137eacc","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseUrl","value":"http://localhost:3000"}]}