{"info":{"_postman_id":"6564afc1-6743-4e2e-9b39-21f06855a86d","name":"QuestQueAPI","description":"<html><head></head><body><p>QuestQue (Name comes from the French pronunciation of Qu’est-ce Que, meaning 'what is it'. As well as the application idea of being a QUE of QUESTions.) is an API that allows users to create, read, update and delete items that contain a question and its answer.</p>\n<p>Developed By Davonte Bertrand-Murrell<br>github.com/DavonteBM<br><a href=\"mailto:DavonteBM@gmail.com\">DavonteBM@gmail.com</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"28561890","collectionId":"6564afc1-6743-4e2e-9b39-21f06855a86d","publishedId":"2s9YeG5rXQ","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-11-29T02:24:54.000Z"},"item":[{"name":"https://questque.onrender.com/answers","id":"a8e6fd29-ca70-4be3-b3fa-311d2de4ed0b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://questque.onrender.com/answers","description":"<p><strong>-Get a list of all avaliable answers</strong></p>\n<p>Steps:<br />1. Send a get request to the endpoint</p>\n<p>Requirement:<br />N/A</p>\n","urlObject":{"protocol":"https","path":["answers"],"host":["questque","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a8e6fd29-ca70-4be3-b3fa-311d2de4ed0b"},{"name":"https://questque.onrender.com/answers/:answerId","id":"eb8ab897-12ee-4c6a-a44b-5172a75e393f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://questque.onrender.com/answers/:answerId","description":"<p><strong>-Get an answer by id</strong></p>\n<p>Steps:<br />1. Send a get request to the endpoint with a path variable of answerId containg the value of the id</p>\n<p>Requirement:<br />The anwer's id</p>\n","urlObject":{"protocol":"https","path":["answers",":answerId"],"host":["questque","onrender","com"],"query":[],"variable":[{"type":"any","value":"65652cb94dda34a65e6c4533","key":"answerId"}]}},"response":[],"_postman_id":"eb8ab897-12ee-4c6a-a44b-5172a75e393f"},{"name":"https://questque.onrender.com/auth/register","id":"234a0c0d-6273-47b2-8899-4fec08bccb9b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n \"username\": \"JohnD\",\r\n \"password\": \"pass123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://questque.onrender.com/auth/register","description":"<p><strong>-Create a user</strong></p>\n<p>Steps:<br />1. Send a post request to the endpoint with a json body that contains your username and password</p>\n<p>Requirement:<br />Remember your username and password to login</p>\n","urlObject":{"protocol":"https","path":["auth","register"],"host":["questque","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"234a0c0d-6273-47b2-8899-4fec08bccb9b"},{"name":"https://questque.onrender.com/auth/login","id":"aa02ba4d-92b9-4424-9fbf-ead0d9c6cc8a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n \"username\": \"JohnD\",\r\n \"password\": \"pass123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://questque.onrender.com/auth/login","description":"<p><strong>-Login using your username and password.</strong></p>\n<p>Steps:<br />1. Send a post request to the endpoint with a json body that contains your created username and password</p>\n<p>Requirement:<br />A created account<br />(Succesful login gives a JWT- Copy your JWT as its need to create, update and delete items)</p>\n","urlObject":{"protocol":"https","path":["auth","login"],"host":["questque","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"aa02ba4d-92b9-4424-9fbf-ead0d9c6cc8a"},{"name":"https://questque.onrender.com","id":"cf4b8c20-e6b2-4356-9afb-aa489c492448","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1NjY5YzU0NWFiYzE4NWZhNGU0MDBlNiIsImlhdCI6MTcwMTIyMzU4Nn0.O0qHB3kJp0iOZKwsWmcKK-xZvqf_I6J1dR2eQtmKw9E","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"question\": \"What is Rene Descartes first principle?\",\r\n    \"solution\": \"That he exists.\",\r\n    \"explanation\": \"The only thing that descartes cannot doubt is that he exists. This is because because to doubt first requires him to  think of the conception of doubt. Hence, he thinks and must therefore exist.\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://questque.onrender.com/answers/create","description":"<p><strong>-Create an answer</strong>Steps:<br />1. Send a post request to the endpoint with a json body containing the fields of question, solution and explaninationexplanation</p>\n<p>Requirement:<br />Your JWT (Use your JWT as the value for the request header)</p>\n","urlObject":{"protocol":"https","path":["answers","create"],"host":["questque","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"cf4b8c20-e6b2-4356-9afb-aa489c492448"},{"name":"https://questque.onrender.com/answers/:answerId","id":"69cd12d0-8fa1-4c74-a192-b499f6756e10","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1NjY2ZWI2Y2RmMTMwMzU2MTM2OTFhMiIsImlhdCI6MTcwMTIxMTg5MX0.ODRY4qTVzFc9DpxCBMpr8lQhhOto6TsIpUofyiDOW40","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"question\": \"What is the population of Canada?\",\r\n    \"solution\": \"38.25 million as of (2021)\",\r\n    \"explanation\": \"Currently the population is 38.25. This number will need to be updated in the future as Canada's population changes.\"\r\n\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://questque.onrender.com/answers/:answerId","description":"<p><strong>-Update an answer by using its id</strong>Steps:<br />1. Send a put request to the endpoint with a json body (containing the updated fields of question, solution and explanation), yourJWT in the request header and the answer's id in the path variable</p>\n<p>Requirement:<br />Your JWT (Use your JWT as the value for the request header)<br />Answer id (Placed in the path variable)<br />Body (json file contaicontaining updated data)</p>\n","urlObject":{"protocol":"https","path":["answers",":answerId"],"host":["questque","onrender","com"],"query":[],"variable":[{"type":"any","value":"65666f5dddaa8c58ed99ee0a","key":"answerId"}]}},"response":[],"_postman_id":"69cd12d0-8fa1-4c74-a192-b499f6756e10"},{"name":"https://questque.onrender.com/answers/:answerId","id":"886b3dae-9159-41e8-ab01-5875427c2b6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1NjY2ZWI2Y2RmMTMwMzU2MTM2OTFhMiIsImlhdCI6MTcwMTIxMTg5MX0.ODRY4qTVzFc9DpxCBMpr8lQhhOto6TsIpUofyiDOW40","type":"text"}],"url":"https://questque.onrender.com/answers/:answerId","description":"<p><strong>-Delete an answer by using its id</strong></p>\n<p>Steps:<br />1. Send a delete request to the endpoint with a the answer's id in the path variable and your JWT in the request header</p>\n<p>Requirement:<br />Your JWT (Use your JWT as the value for the request header)<br />Answer id</p>\n","urlObject":{"protocol":"https","path":["answers",":answerId"],"host":["questque","onrender","com"],"query":[],"variable":[{"type":"any","value":"65666f5dddaa8c58ed99ee0a","key":"answerId"}]}},"response":[],"_postman_id":"886b3dae-9159-41e8-ab01-5875427c2b6d"}]}