{"info":{"_postman_id":"a9d1ae24-5311-4112-b932-bc8595593a4c","name":"API-CHALLENGE","description":"<html><head></head><body><p><em>The challenge is called stack-lite.</em></p>\n<p>The API end points are grouped into question routes and answer routes.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"20531202","collectionId":"a9d1ae24-5311-4112-b932-bc8595593a4c","publishedId":"UzXVsZCj","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-07-29T13:17:11.000Z"},"item":[{"name":"Stack-lite","item":[{"name":"question routes","item":[{"name":"get all questions","id":"9eb66a4d-c87a-4bfb-b892-9efc8c5f37e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:4000/api/v1/questions","description":"<p>Get request to retrieve all questions.</p>\n","urlObject":{"port":"4000","path":["api","v1","questions"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"9eb66a4d-c87a-4bfb-b892-9efc8c5f37e5"},{"name":"get question by id","id":"db1e53a4-0298-4a22-bf0f-0840151e93ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:4000/api/v1/questions/3","description":"<p>Get specific question from the db</p>\n","urlObject":{"port":"4000","path":["api","v1","questions","3"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"db1e53a4-0298-4a22-bf0f-0840151e93ad"},{"name":"Add a question","id":"129afe6d-0763-4ae2-aefd-ce2db40038f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"title\":\"Help\",\n     \"description\":\"My life is awesome\"\n}\n","options":{"raw":{"language":"json"}}},"url":"localhost:4000/api/v1/questions","description":"<p>Required fields are title and description. The id is automatically generated.\nYou are then redirected to the /questions path where you will view all questions.\nLook for a suprise in your console.</p>\n","urlObject":{"port":"4000","path":["api","v1","questions"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"129afe6d-0763-4ae2-aefd-ce2db40038f6"}],"id":"e1a80316-0dac-45a4-a8c6-a3a3fada8141","description":"<p>Sub-route: localhost:PORT/api/v1/questions</p>\n","_postman_id":"e1a80316-0dac-45a4-a8c6-a3a3fada8141"},{"name":"answer routes","item":[{"name":"Add an answer to a question","id":"d17e09c8-3cfa-4cf1-8768-7049957ea78c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"ans\": \"Find little more life\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:4000/api/v1/answers/1","description":"<p>use the following path \nlocalhost:/api/v1/questions/:id</p>\n<p>Submit an answer to a particular question</p>\n","urlObject":{"port":"4000","path":["api","v1","answers","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"d17e09c8-3cfa-4cf1-8768-7049957ea78c"},{"name":"Get all answers for all questions","id":"4c26e14f-d9bb-4c62-944d-ae4d4e5f881e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:4000/api/v1/answers/","description":"<p>api/v1/answers/all</p>\n","urlObject":{"port":"4000","path":["api","v1","answers",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"4c26e14f-d9bb-4c62-944d-ae4d4e5f881e"},{"name":"Get answers to a specific question","id":"96f62e2d-3970-4d7e-b64f-e70aa26a3175","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:4000/api/v1/answers/1","description":"<p>Specifiy qtn you need using the id params</p>\n","urlObject":{"port":"4000","path":["api","v1","answers","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"96f62e2d-3970-4d7e-b64f-e70aa26a3175"}],"id":"a1b67603-a79f-4e91-9491-9da280016bf4","description":"<p>Sub-route: localhost:PORT/api/v1/answers</p>\n","_postman_id":"a1b67603-a79f-4e91-9491-9da280016bf4"},{"name":"auth route","item":[{"name":"Home page","id":"eb2c386b-0248-434f-9809-c6a46891b804","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user\": \"Stacey\",\n    \"email\": \"stacey@gmail.com\",\n    \"pwd\": \"12345\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:4000/api/v1/users/","urlObject":{"port":"4000","path":["api","v1","users",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"eb2c386b-0248-434f-9809-c6a46891b804"},{"name":"get code","id":"c785a693-cbb2-4260-a201-3f0fa745644f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://accounts.google.com/o/oauth2/v2/auth/oauthchooseaccount?response_type=code&redirect_uri=http://localhost&scope=profile%20email&client_id=1050180372939-5cimo7esi4vjp798ve85q3g528sji2is.apps.googleusercontent.com&flowName=GeneralOAuthFlow&access_type=offline","urlObject":{"protocol":"https","path":["o","oauth2","v2","auth","oauthchooseaccount"],"host":["accounts","google","com"],"query":[{"key":"response_type","value":"code"},{"key":"redirect_uri","value":"http://localhost"},{"key":"scope","value":"profile%20email"},{"key":"client_id","value":"1050180372939-5cimo7esi4vjp798ve85q3g528sji2is.apps.googleusercontent.com"},{"key":"flowName","value":"GeneralOAuthFlow"},{"key":"access_type","value":"offline"}],"variable":[]}},"response":[],"_postman_id":"c785a693-cbb2-4260-a201-3f0fa745644f"}],"id":"1e054d6c-3b99-4961-9d5a-36a7d4e7c3c1","_postman_id":"1e054d6c-3b99-4961-9d5a-36a7d4e7c3c1","description":""}],"id":"0ac24f73-4ced-4dc4-9158-a7cc1dbac422","description":"<p><strong>HOW TO USE STACK-LITE</strong></p>\n<p>Main route: localhost:PORT/api/v1/</p>\n","_postman_id":"0ac24f73-4ced-4dc4-9158-a7cc1dbac422"}]}