{"info":{"_postman_id":"bb2fcd6e-865b-4332-8484-40faa20b9773","name":"Twitter","description":"<html><head></head><body><h1 id=\"introduction\">Introduction</h1>\n<p>This is a Twitter Clone REST API. This API allows basic twitter functionalities like register, login, follow, unfollow, create tweet, read tweet, delete tweet.</p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>All the requests other than register and login require user logged in.</p>\n<h1 id=\"error-codes\">Error Codes</h1>\n<p>200 - OK</p>\n<p>400 - Bad Request</p>\n<p>401 - Unauthorized.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Introduction","slug":"introduction"},{"content":"Authentication","slug":"authentication"},{"content":"Error Codes","slug":"error-codes"}],"owner":"5309265","collectionId":"bb2fcd6e-865b-4332-8484-40faa20b9773","publishedId":"S1ENyJr3","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-04-12T12:01:46.000Z"},"item":[{"name":"Delete a tweet","id":"060543c3-1615-4544-b0dd-23f115cf8aaa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8000/api/tweet/{{tweetid}}","description":"<p>This endpoint will delete tweet with specified tweet id. User who is the owner of that tweet would only be able to delete that tweet.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","tweet","{{tweetid}}"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"060543c3-1615-4544-b0dd-23f115cf8aaa"},{"name":"Register a new user.","id":"7cca92bf-fbf3-47c4-984f-a26766f92688","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"dhoni\",\n\t\"password\": \"cooooool\"\n}"},"url":"http://localhost:8000/api/users/register","description":"<p>This endpoint will allow a user to register.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","users","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7cca92bf-fbf3-47c4-984f-a26766f92688"},{"name":"User Login.","id":"06595526-40ad-4bcf-85ed-c6d020ccc5ec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\" : \"harshit\",\n\t\"password\": \"password\"\n}"},"url":"http://localhost:8000/api/users/login","description":"<p>This endpoint will log a user in.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","users","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"06595526-40ad-4bcf-85ed-c6d020ccc5ec"},{"name":"Follow a user.","id":"7be9fc3a-911d-4f1d-9344-ed975b781a62","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8000/api/users/{{username}}/follow","description":"<p>This endpoint will allow a user to follow another user with specified username.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","users","{{username}}","follow"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7be9fc3a-911d-4f1d-9344-ed975b781a62"},{"name":"Unfollow a user.","id":"eba35420-766c-4ebf-a247-14330ecd5635","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8000/api/users/{{username}}/unfollow","description":"<p>This endpoint will allow a user to unfollow another user with specified username.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","users","{{username}}","unfollow"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"eba35420-766c-4ebf-a247-14330ecd5635"},{"name":"Tweet.","id":"f0f60986-130d-4179-b196-b191c9592474","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"tweet\": \"DJ Snake\"\n}"},"url":"http://localhost:8000/api/tweet/","description":"<p>This endpoint will allow a user to make a tweet.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","tweet",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"f0f60986-130d-4179-b196-b191c9592474"},{"name":"Read tweet.","id":"af08ca29-e0d0-499c-aedb-8cc86d859565","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8000/api/tweet/{{tweetid}}","description":"<p>This endpoint will allow a user to read a tweet with specified tweet id.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","tweet","{{tweetid}}"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"af08ca29-e0d0-499c-aedb-8cc86d859565"}],"event":[{"listen":"prerequest","script":{"id":"35030b61-a8ea-4334-b015-de7eac314eda","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"6fdd7bca-8412-4b2f-a523-df8e6dccb247","type":"text/javascript","exec":[""]}}]}