{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"644b4925-a5d8-4127-aedd-9ac50dae7e4e","name":"Todos App","description":"# Introduction\n\nWhat does your API do?\n\nAllow users to create and manage thier Todos.\nUsers must loged in to do that.\n\n# Overview\nFirst you'll need to sign up as user. Once you're successfully registered and x-auth token is generated, pass it along to create, read, update, delete Todos.\n\nYou can explore TODO APIs by hitting the routes below, everything has been pre-configured to you. See routes description for more details.\n\nWhile comsuming TODOs API other than here, you'll need to take care of request body, passing appropriate JSON or X-auth token wherever necesaary.\n\n# Getting Started \n\nmake sure to select proper environment variable\n\n* for development use **Todo App Local**\n\n* for production/testing use **Todo App Heroku**\n\nsimply click the routes below to Hit API endpoint\n\n#Login\nfirst you'll need to login in, you can use credentials provided by us for testing. See route request body for more details. We have already created a user for you, you can see user's credential in request body. credentials are passed as JSON object.\n\nuse `POST/users/login` \n\nto confirm your login check status code: 200. X-auth token should have been generated.\nYou can also confirm by hitting `GET/users/me` route, server should return user details.\n\nNote: Password are hashed and are not sent back.\n\n#Get all Todos\n`use GET/todos` route\n\ngives list all the todos and thier status for the loged in user.\n\n#Create TODO\nuse `POST/todos` route\n\n\nsend you new Todo as JSON object in request body. See request body on how to pass it. You'll also need to pass x-auth token in request of the body. For now everything is done for you, simply hit the API end-point\nFeel free to create your own todo.\n\n#Update TODO\nuse `PATCH/todos/:id` route\n\npass along todo id and updated fields.\n\n#Delete TODO\nuse `DELETE /todos/:id` route\n\nto delete todo, make sure you pass todo id and your X-auth token. You can get todo id when you create a new Todo or read all Todos.\n\n#Logout as current user\n\nuse `DELETE /users/me/token` route\n\n#Sign Up\n\nuse `POST /users` route\n\npass in along your email id and password as JSONin request body, see request for more details. Once you sign up, x-auth token is generated for you\n \n \n \n \n# Authentication\nUses JSON Web Token for Auth.You must pass along x-auth token where ever needed\n\n# Error Codes\nas per standards\n\n# Rate limit\nNo such thing, right now :)","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"4315841","collectionId":"644b4925-a5d8-4127-aedd-9ac50dae7e4e","publishedId":"RWEnkv4j","public":true,"publicUrl":"https://documenter-api.postman.tech/view/4315841/RWEnkv4j","privateUrl":"https://go.postman.co/documentation/4315841-644b4925-a5d8-4127-aedd-9ac50dae7e4e","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"17A2B8"},"documentationLayout":"classic-double-column","version":"8.10.0","publishDate":"2018-06-29T13:33:41.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{},"logos":{}},"statusCode":200},"environments":[{"name":"Todo App Heroku","id":"2b0b653d-dead-4179-af93-82604bd8c5a3","owner":"4315841","values":[{"key":"url","value":"https://todos-app-api.herokuapp.com","enabled":true,"type":"text"},{"key":"x-auth","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1YjM2MmM5NWI1MjcxMzAwMTRjZjY0YzMiLCJhY2Nlc3MiOiJhdXRoIiwiaWF0IjoxNTMwMjc4MzEzfQ.EnVnSgQ8yc0Ek00XEoTNbhYKSHaDJiEvYVeCdmaR0Xw","enabled":true,"type":"text"},{"key":"todoId","value":"5b36349eb527130014cf64cd","enabled":true,"type":"text"}],"published":true}],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/768118b36f06c94b0306958b980558e6915839447e859fe16906e29d683976f0","favicon":""},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"},{"label":"Todo App Heroku","value":"4315841-2b0b653d-dead-4179-af93-82604bd8c5a3"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/RWEnkv4j"}