{"info":{"_postman_id":"6994dd9e-5fbb-4190-a6d2-9365aa99b589","name":"Quizy","description":"<html><head></head><body><p>Quiz Bank API.</p>\n<h4 id=\"things-to-know-about-the-api-response\">Things to Know About the API Response</h4>\n<p>All Normal (no error) Responses take this format.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"status\": ,\n    \"message\": ,\n    \"data\": \n}\n\n</code></pre>\n<p><strong>NB:</strong> If the response is an error response, status will have a value of \"error\" &amp; <code>data</code> will be replaced with <code>error</code>.</p>\n<p><code>status</code> key could have values ranging from \"success\" , \"failed\", \"error\".</p>\n<ul>\n<li>success means the operation or the request is successful.</li>\n<li>failed means the operation or the request isn't successful.</li>\n<li>error means an error occurred in the process of performing the operation or request.</li>\n</ul>\n<p><code>message</code> key value is a human readable response about the request or operation performed.</p>\n<p><code>data</code></p>\n<p>Paginated response implies that the <code>data</code> value would be a dictionary that has the following keys: 'count', 'next', 'previous', 'results'.</p>\n<p>The returned list for that particular page is the value of the <code>results</code> key.</p>\n<blockquote>\n<p>An endpoint that has a badge <strong>Staff User Only</strong> means if the request is made by an ordinary user the request won't be successful.</p>\n</blockquote>\n<p><strong>NB:</strong> Take note of the trailing slash at some of the endpoints especially the ones that use POST method.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"20059082","collectionId":"6994dd9e-5fbb-4190-a6d2-9365aa99b589","publishedId":"UzQxP53p","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-07-19T07:58:10.000Z"},"item":[{"name":"Authentication","item":[{"name":"Register User","id":"f2364c1e-7415-4d7e-9cef-e97f9b25e91d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"<string>","description":"<p>An email address field. (Required)</p>\n","type":"text"},{"key":"password","value":"<string>","description":"<p>A string with a minimum length of 6. (Required)</p>\n","type":"text"},{"key":"password2","value":"<string>","description":"<p>A string with a minimum length of 6. (Required)</p>\n","type":"text"},{"key":"username","value":"<string>","description":"<p>A string that has not been used by other registered user.(Required)</p>\n","type":"text"}]},"url":"https://quizzybankky.herokuapp.com/api/v1/auth/register","description":"<p>Register new user.</p>\n<p><strong>NB:</strong> The username and email has be unique else a 400 response will be returned.</p>\n","urlObject":{"path":["register"],"host":["https://quizzybankky.herokuapp.com/api/v1/auth"],"query":[],"variable":[]}},"response":[{"id":"f490f11c-021e-4b27-a7b7-0c8f03d1934d","name":"Register User","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"dave","type":"text"},{"key":"email","value":"dave@gmail.com","type":"text"},{"key":"password","value":"12345678","type":"text"},{"key":"password2","value":"12345678","type":"text"}]},"url":"https://quizzybankky.herokuapp.com/api/v1/auth/register"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"success\",\r\n    \"message\": \"An email activation link has been to your email address\",\r\n    \"data\": {\r\n        \"username\": \"dave\",\r\n        \"email\": \"dave@gmail.com\"\r\n    }\r\n}"}],"_postman_id":"f2364c1e-7415-4d7e-9cef-e97f9b25e91d"},{"name":"Login User","id":"ff1f6b71-a1e2-4a3a-85b1-66d774317f90","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"<string>","description":"<p>A string with a minimum length of 3. (Required)</p>\n","type":"text"},{"key":"password","value":"<string>","description":"<p>A string with a minimum length of 6. (Required)</p>\n","type":"text"}]},"url":"https://quizzybankky.herokuapp.com/api/v1/auth/login","description":"<p>Return the access and refresh token for the user whose credentials is passed in the body.</p>\n<p><strong>NB:</strong> The username could be the user's email address as well. (Email login is supported).</p>\n<p><strong>NB:</strong> Access token has a live time of 1 day while Refresh has 7 days.</p>\n<p>This will updated to a shorter live time once we deploy for security reasons.</p>\n","urlObject":{"path":["login"],"host":["https://quizzybankky.herokuapp.com/api/v1/auth"],"query":[],"variable":[]}},"response":[{"id":"222927f4-4324-4ab8-8daf-32e6ecf4189a","name":"Login User","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"dave","type":"text"},{"key":"password","value":"12345678","type":"text"}]},"url":"https://quizzybankky.herokuapp.com/api/v1/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"success\",\r\n    \"message\": \"Login credentials are  valid\",\r\n    \"data\": {\r\n        \"username\": \"dave\",\r\n        \"refresh\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTY1ODg2NDU1NywiaWF0IjoxNjU4MjU5NzU3LCJqdGkiOiI0MGI4Y2IxOWZlMTc0MTlhYWJkZTJkNGU1MWNmZjE5OSIsInVzZXJfaWQiOjh9.KLIGXjzPz6csiFaGjpWoafzPCwQG9jn0Guwu1qXeqlw\",\r\n        \"access\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjU4MzQ2MTU3LCJpYXQiOjE2NTgyNTk3NTcsImp0aSI6IjAxMTQ4ZDRiODRkYzRhNWNhNTY4MTY1MzQzNmJjODRiIiwidXNlcl9pZCI6OH0.wWXpDhuDHqYft4P33UDHYZWpuXPOV0PegrFv3owCzbM\"\r\n    }\r\n}"},{"id":"97d29ed5-92fc-4efa-9db5-3fcdd2b2e311","name":"Unverified User Login","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"dave","type":"text"},{"key":"password","value":"12345678","type":"text"}]},"url":"https://quizzybankky.herokuapp.com/api/v1/auth/login"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"ff1f6b71-a1e2-4a3a-85b1-66d774317f90"},{"name":"Verify Email","id":"ab3067af-9c32-45a0-bdc0-5b4d8be5ac51","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://quizzybankky.herokuapp.com/api/v1/auth/email-verify?token=<string>","description":"<p>Verifies the link sent to user's email for account email verification.</p>\n<p><strong>NB:</strong> The link sent to the user will be changed later to the frontend route that will be handling email verification.</p>\n","urlObject":{"path":["email-verify"],"host":["https://quizzybankky.herokuapp.com/api/v1/auth"],"query":[{"description":{"content":"<p>A string of long length sent to user's email after a successful registration.</p>\n","type":"text/plain"},"key":"token","value":"<string>"}],"variable":[]}},"response":[{"id":"d0b5e45f-2acd-4548-9bde-fdb4bcdb875c","name":"Verify Email","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://quizzybankky.herokuapp.com/api/v1/auth/email-verify?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjU4MzQ1NzIyLCJpYXQiOjE2NTgyNTkzMjIsImp0aSI6ImFlMTQ4Y2VkN2MxNjQyOWNhNGQ3YTVmNTFhYTE0ZWJjIiwidXNlcl9pZCI6OH0.u02NhfFa6I3sHlf9kztshvsYZHWrI-bvUbfm_U-uReo","host":["https://quizzybankky.herokuapp.com/api/v1/auth"],"path":["email-verify"],"query":[{"key":"token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjU4MzQ1NzIyLCJpYXQiOjE2NTgyNTkzMjIsImp0aSI6ImFlMTQ4Y2VkN2MxNjQyOWNhNGQ3YTVmNTFhYTE0ZWJjIiwidXNlcl9pZCI6OH0.u02NhfFa6I3sHlf9kztshvsYZHWrI-bvUbfm_U-uReo","description":"A string of long length sent to user's email after a successful registration."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"success\",\r\n    \"message\": \"Account has been verified successfully\",\r\n    \"data\": []\r\n}"}],"_postman_id":"ab3067af-9c32-45a0-bdc0-5b4d8be5ac51"},{"name":"Resend Email Verification Token","id":"5f7b6137-762b-4268-88bf-1b4495292574","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"<string>","description":"<p>An email address field. (Required)</p>\n","type":"text"}]},"url":"https://quizzybankky.herokuapp.com/api/v1/auth/resend-email-token","description":"<p>Send new account email verification token to the email address passed in the body.</p>\n<p><strong>NB:</strong> The link sent to the user will be changed later to the frontend route that will be handling email verification.</p>\n","urlObject":{"path":["resend-email-token"],"host":["https://quizzybankky.herokuapp.com/api/v1/auth"],"query":[],"variable":[]}},"response":[{"id":"ae8c8082-cb8e-4edb-88ae-e324855d1bb5","name":"Resend Email Verification Token","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"tobi@gmail.com","description":"An email address field. (Required)","type":"text"}]},"url":"https://quizzybankky.herokuapp.com/api/v1/auth/resend-email-token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"success\",\r\n    \"message\": \"Email account verification mail sent\",\r\n    \"data\": {\r\n        \"email\": \"tobi@gmail.com\"\r\n    }\r\n}"}],"_postman_id":"5f7b6137-762b-4268-88bf-1b4495292574"},{"name":"Change Password","id":"9d6e8542-ab85-45fc-a48d-383fb808859b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"old_password","value":"<string>","description":"<p>A string with a minimum length of 6. (Required)</p>\n","type":"text"},{"key":"new_password","value":"<string>","description":"<p>A string with a minimum length of 6. (Required)</p>\n","type":"text"}]},"url":"https://quizzybankky.herokuapp.com/api/v1/auth/change-password","description":"<p>Change the password of the authenticated user if the <code>old_password</code> in the body matches the current password of the authenticated user.</p>\n","urlObject":{"path":["change-password"],"host":["https://quizzybankky.herokuapp.com/api/v1/auth"],"query":[],"variable":[]}},"response":[{"id":"6c42eeba-6e87-44b0-b580-cbde373173b6","name":"Change Password","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <Your Access Token>","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"old_password","value":"12345678","description":"A string with a minimum length of 6. (Required)","type":"text"},{"key":"new_password","value":"newpassword","description":"A string with a minimum length of 6. (Required)","type":"text"}]},"url":"https://quizzybankky.herokuapp.com/api/v1/auth/change-password"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"success\",\r\n    \"message\": \"Password Updated Successfully\",\r\n    \"data\": []\r\n}"}],"_postman_id":"9d6e8542-ab85-45fc-a48d-383fb808859b"},{"name":"Reset Password","id":"b564ab25-35aa-444e-ab55-5a56f32fa588","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"<string>","description":"<p>An email address field.(Required)</p>\n","type":"text"}]},"url":"https://quizzybankky.herokuapp.com/api/v1/auth/reset-password","description":"<p>Send password reset token to the user's email address entered as the value of email in the body.</p>\n<p><strong>NB:</strong> If the user's email address has not been verified previously no email will be sent even though you will get a 200 response.</p>\n<p><strong>NB:</strong> The link sent to the user will be changed later to the frontend route that will be handling password reset token verification.</p>\n","urlObject":{"path":["reset-password"],"host":["https://quizzybankky.herokuapp.com/api/v1/auth"],"query":[],"variable":[]}},"response":[{"id":"f8291cf0-e2d9-4491-bfb2-607535f2a263","name":"Reset Password","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"dave@gmail.com","description":"An email address field.(Required)","type":"text"}]},"url":"https://quizzybankky.herokuapp.com/api/v1/auth/reset-password"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"success\",\r\n    \"message\": \"Password reset mail sent\",\r\n    \"data\": {\r\n        \"email\": \"tobi@gmail.com\"\r\n    }\r\n}"}],"_postman_id":"b564ab25-35aa-444e-ab55-5a56f32fa588"},{"name":"Verify Password Reset Token","id":"26a7b706-622a-4159-bd07-57751d9cdd44","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://quizzybankky.herokuapp.com/api/v1/auth/reset-password/:uidb64/:token","description":"<p>Verify the token sent to the user's email address if it is valid or not.</p>\n","urlObject":{"path":["reset-password",":uidb64",":token"],"host":["https://quizzybankky.herokuapp.com/api/v1/auth"],"query":[],"variable":[{"type":"any","value":"<string>","key":"uidb64"},{"type":"any","value":"<string>","key":"token"}]}},"response":[{"id":"e2cb82e3-36b6-4e84-9ee2-5e05575b4a3d","name":"Verify Password Reset Token","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://quizzybankky.herokuapp.com/api/v1/auth/reset-password/OA/b8stry-983af9785ff9c558e2d2f33d60c34b16","host":["https://quizzybankky.herokuapp.com/api/v1/auth"],"path":["reset-password","OA","b8stry-983af9785ff9c558e2d2f33d60c34b16"],"query":[{"key":null,"value":"","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"success\",\r\n    \"message\": \"Token is valid\",\r\n    \"data\": {\r\n        \"token\": \"b8stry-983af9785ff9c558e2d2f33d60c34b16\",\r\n        \"uidb64\": \"OA\"\r\n    }\r\n}"}],"_postman_id":"26a7b706-622a-4159-bd07-57751d9cdd44"},{"name":"Set New Password","id":"e261cfef-8491-4fa5-80b3-ca3b908889ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"new_password1","value":"<string>","description":"<p>A string with minimum length of 6. (Required)</p>\n","type":"text"},{"key":"new_password2","value":"<string>","description":"<p>A string with minimum length of 6. (Required)  must be equal to new_password1.</p>\n","type":"text"},{"key":"token","value":"<string>","description":"<p>(Required)</p>\n","type":"text"},{"key":"uidb64","value":"<string>","description":"<p>(Required)</p>\n","type":"text"}]},"url":"https://quizzybankky.herokuapp.com/api/v1/auth/reset-password/set","description":"<p>Set the user's password if the token and uidb64 are valid.</p>\n","urlObject":{"path":["reset-password","set"],"host":["https://quizzybankky.herokuapp.com/api/v1/auth"],"query":[],"variable":[]}},"response":[{"id":"f9e9ea65-cdbf-413d-8820-db905456cd01","name":"Set New Password","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"new_password1","value":"setpassword","description":"A string with minimum length of 6. (Required)","type":"text"},{"key":"new_password2","value":"setpassword","description":"A string with minimum length of 6. (Required)  must be equal to new_password1.","type":"text"},{"key":"token","value":"b8stry-983af9785ff9c558e2d2f33d60c34b16","description":"(Required)","type":"text"},{"key":"uidb64","value":"OA","description":"(Required)","type":"text"}]},"url":"http://127.0.0.1:8000/api/v1//auth/reset-password/set"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"success\",\r\n    \"message\": \"Password Reset Done successfully\",\r\n    \"data\": []\r\n}"}],"_postman_id":"e261cfef-8491-4fa5-80b3-ca3b908889ff"},{"name":"Get User's Profile","id":"562125f6-517d-497e-8c9d-950673c582b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://quizzybankky.herokuapp.com/api/v1/auth/user-profile","description":"<p>Get the profile detail of the authenticated user.</p>\n","urlObject":{"path":["user-profile"],"host":["https://quizzybankky.herokuapp.com/api/v1/auth"],"query":[],"variable":[]}},"response":[{"id":"7794c19b-d8ad-4755-966b-7b8345f0b88c","name":"Get User's Profile","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer <Your Access Token>","type":"text"}],"url":{"raw":"https://quizzybankky.herokuapp.com/api/v1/auth/user-profile","host":["https://quizzybankky.herokuapp.com/api/v1/auth"],"path":["user-profile"],"query":[{"key":"","value":null,"type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"success\",\r\n    \"message\": \"Authenticated User Profile\",\r\n    \"data\": {\r\n        \"id\": 2,\r\n        \"username\": \"perm\",\r\n        \"first_name\": \"\",\r\n        \"last_name\": \"\",\r\n        \"bio\": \"\",\r\n        \"avatar\": \"/media/avatar.jpg\",\r\n        \"is_staff\": false\r\n    }\r\n}"}],"_postman_id":"562125f6-517d-497e-8c9d-950673c582b9"},{"name":"Update User's Profile","id":"d2df5f76-99c7-4173-ad8d-d1273aa211bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://quizzybankky.herokuapp.com/api/v1/auth/user-profile","description":"<p>Update the authenticated user's profile.</p>\n","urlObject":{"path":["user-profile"],"host":["https://quizzybankky.herokuapp.com/api/v1/auth"],"query":[],"variable":[]}},"response":[{"id":"241f45b7-cab5-4e90-8006-1763f3134c34","name":"Update User's Profile","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer <Your Access Token>","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"username","value":"newdave","type":"text"}]},"url":"https://quizzybankky.herokuapp.com/api/v1/auth/user-profile"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"success\",\r\n    \"message\": \"Profile Updated Successfully\",\r\n    \"data\": {\r\n        \"id\": 8,\r\n        \"username\": \"newdave\",\r\n        \"first_name\": \"\",\r\n        \"last_name\": \"\",\r\n        \"bio\": \"\",\r\n        \"avatar\": \"/media/avatar.jpg\"\r\n    }\r\n}"}],"_postman_id":"d2df5f76-99c7-4173-ad8d-d1273aa211bc"},{"name":"Obtain New Access Token","id":"186e8917-ba2d-481d-b295-6975ca7a31bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"refresh","value":"<string>","type":"text"}]},"url":"https://quizzybankky.herokuapp.com/api/v1/auth/refresh-token","description":"<p>Get a new access token if the refresh token in the request's body is valid.</p>\n","urlObject":{"path":["refresh-token"],"host":["https://quizzybankky.herokuapp.com/api/v1/auth"],"query":[{"disabled":true,"key":"","value":null}],"variable":[]}},"response":[{"id":"bf4f3af0-baad-467d-952d-4fb46e5e2a58","name":"Obtain New Access Token","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"refresh","value":"<Your Refresh Token>","type":"text"}]},"url":"https://quizzybankky.herokuapp.com/api/v1/auth/refresh-token"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"success\",\r\n    \"message\": \"New access token\",\r\n    \"data\": {\r\n        \"access\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjU4MzQ3MzQ1LCJpYXQiOjE2NTgyNTk3NTcsImp0aSI6ImRkMTllMWE4OTBkYjRjN2E4NWJlMjliZTRlN2JjMjZhIiwidXNlcl9pZCI6OH0.KYWGO-oc0LIYl9uJBY-ky3BCJRZeW1giSbVg9u0DZXQ\"\r\n    }\r\n}"}],"_postman_id":"186e8917-ba2d-481d-b295-6975ca7a31bb"}],"id":"557c80cc-d36b-4365-a6cf-1cc8e929f5b3","description":"<p>This folder contains all endpoints relating to authentication. It includes register, login, email verification, resend email verification link, change password, reset password, verify password reset token, set new password, get user profile, update user's profile and obtain new access token endpoints.</p>\n","event":[{"listen":"prerequest","script":{"id":"df5e89a0-0713-45e2-bd86-824a8a628101","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"85374e65-1787-46f4-a2d6-404f5ddcd97e","type":"text/javascript","exec":[""]}}],"_postman_id":"557c80cc-d36b-4365-a6cf-1cc8e929f5b3"},{"name":"Users","item":[{"name":"Make User Staff","id":"ba9ca8d0-4ded-49cd-a79a-faad16ad1984","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"https://quizzybankky.herokuapp.com/api/v1/users/:userid/staff","description":"<p>makes a user whose id is passed in the user a staff.</p>\n<p><strong>Staff User Only</strong>.</p>\n","urlObject":{"path":[":userid","staff"],"host":["https://quizzybankky.herokuapp.com/api/v1/users"],"query":[],"variable":[{"description":{"content":"<p>The user's ID</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"userid"}]}},"response":[{"id":"fe4f1f62-e931-49e6-8f55-e30c6b8140c1","name":"Make User Staff","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <Your Access Token>","type":"text"}],"url":"http://127.0.0.1:8000/api/v1//users/8/staff"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"success\",\r\n    \"message\": \"newdave has been made a staff and an email has been sent to dave@gmail.com\",\r\n    \"data\": []\r\n}"}],"_postman_id":"ba9ca8d0-4ded-49cd-a79a-faad16ad1984"},{"name":"Remove a user's staff status","id":"3dc0aa69-257b-4bcc-83ac-a872b0b23cd5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"https://quizzybankky.herokuapp.com/api/v1/users/:userid/staff","description":"<p>Remove staff status from the user whose id is passed in the URL.</p>\n<p><strong>Staff User Only</strong></p>\n","urlObject":{"path":[":userid","staff"],"host":["https://quizzybankky.herokuapp.com/api/v1/users"],"query":[],"variable":[{"description":{"content":"<p>The user's ID</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"userid"}]}},"response":[{"id":"2aefb94b-0404-43c6-a154-18a532f83e78","name":"Remove a user's staff status","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer <Your Access Token>","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/users/8/staff"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"success\",\r\n    \"message\": \"newdave is no longer a staff and an email has been sent to dave@gmail.com\",\r\n    \"data\": []\r\n}"}],"_postman_id":"3dc0aa69-257b-4bcc-83ac-a872b0b23cd5"},{"name":"User's Questions","id":"d8ce1e3f-ac18-4ee3-8319-abf54b8dce69","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://quizzybankky.herokuapp.com/api/v1/users/:userid/questions","description":"<p>Get all questions created by the user whose id is passed in the URL.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"601f2b82-48f4-4833-8f6d-6cf1203ba7ef","id":"601f2b82-48f4-4833-8f6d-6cf1203ba7ef","name":"Users","type":"folder"}},"urlObject":{"path":[":userid","questions"],"host":["https://quizzybankky.herokuapp.com/api/v1/users"],"query":[],"variable":[{"type":"any","value":"<integer>","key":"userid"}]}},"response":[{"id":"affd7fa0-25e9-4f6c-a6ca-c2efaf5dff11","name":"User's Questions","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer <Your Access Token>","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/users/1/questions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"success\",\r\n    \"message\": \"Questions created by the user whose ID is passed in the URL fetched successfully\",\r\n    \"data\": {\r\n        \"count\": 1,\r\n        \"next\": null,\r\n        \"previous\": null,\r\n        \"results\": [\r\n            {\r\n                \"id\": 4,\r\n                \"question\": \"Filtering working\",\r\n                \"difficulty\": \"medium\",\r\n                \"type\": \"multiple-choice\",\r\n                \"category\": \"programming\",\r\n                \"correct_answer\": \"True\",\r\n                \"incorrect_answers\": [\r\n                    \"working🎉\",\r\n                    \"bol\"\r\n                ],\r\n                \"explanation\": \"Central Processing Unit -> CPU\",\r\n                \"image\": null,\r\n                \"created_by\": \"admin\",\r\n                \"date_created\": \"2022-07-16T07:35:48.023648Z\",\r\n                \"is_verified\": true,\r\n                \"verified_by\": \"bovage\",\r\n                \"date_verified\": \"2022-07-16T07:35:22Z\"\r\n            }\r\n        ]\r\n    }\r\n}"}],"_postman_id":"d8ce1e3f-ac18-4ee3-8319-abf54b8dce69"},{"name":"User's Question Statistics","id":"b989f58d-a4c3-4ba6-8e78-78aef2089ec9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://quizzybankky.herokuapp.com/api/v1/users/:userid/questions-stat","description":"<p>Get the number of questions, number of verified questions and number of unverified questions submitted by the user whose id is passed in the URL.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"601f2b82-48f4-4833-8f6d-6cf1203ba7ef","id":"601f2b82-48f4-4833-8f6d-6cf1203ba7ef","name":"Users","type":"folder"}},"urlObject":{"path":[":userid","questions-stat"],"host":["https://quizzybankky.herokuapp.com/api/v1/users"],"query":[],"variable":[{"type":"any","value":null,"key":"userid"}]}},"response":[{"id":"6d91f7ab-192b-4a54-a2a8-2bbea637b26a","name":"User's Question Statistics","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/users/1/questions-stat"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"success\",\r\n    \"message\": \"Statistics on the questions created by the user whose ID is passed in the URL\",\r\n    \"data\": {\r\n        \"all_question\": 1,\r\n        \"verified_questions\": 1,\r\n        \"unverified_questions\": 0\r\n    }\r\n}"}],"_postman_id":"b989f58d-a4c3-4ba6-8e78-78aef2089ec9"},{"name":"List Users","id":"e3ee74d2-3e6d-4e3d-936b-053ee9ee4070","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://quizzybankky.herokuapp.com/api/v1/users","description":"<p>Get the list of all users (including staff users) in the database.</p>\n<p><strong>Staff User Only</strong></p>\n","urlObject":{"host":["https://quizzybankky.herokuapp.com/api/v1/users"],"query":[],"variable":[]}},"response":[{"id":"d70232ed-01e0-40d4-a818-7a564346d403","name":"List Users","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer <Your Access Token>","type":"text"}],"url":"https://quizzybankky.herokuapp.com/api/v1/users"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Details about all users\",\n    \"data\": {\n        \"count\": 8,\n        \"next\": null,\n        \"previous\": null,\n        \"results\": [\n            {\n                \"id\": 5,\n                \"username\": \"bovagepo\",\n                \"email\": \"bovagepo@gmail.com\",\n                \"bio\": \"\",\n                \"is_verified\": true,\n                \"is_staff\": false,\n                \"is_superuser\": false,\n                \"date_joined\": \"2022-07-15T07:12:49.804155Z\",\n                \"avatar\": \"http://127.0.0.1:8000/media/avatar.jpg\"\n            },\n            {\n                \"id\": 4,\n                \"username\": \"bovagep\",\n                \"email\": \"bovagep@gmail.com\",\n                \"bio\": \"\",\n                \"is_verified\": true,\n                \"is_staff\": false,\n                \"is_superuser\": false,\n                \"date_joined\": \"2022-07-15T07:07:45.174164Z\",\n                \"avatar\": \"http://127.0.0.1:8000/media/avatar.jpg\"\n            },\n            {\n                \"id\": 2,\n                \"username\": \"bovag\",\n                \"email\": \"bovag@gmail.com\",\n                \"bio\": \"\",\n                \"is_verified\": false,\n                \"is_staff\": true,\n                \"is_superuser\": false,\n                \"date_joined\": \"2022-07-15T07:03:36Z\",\n                \"avatar\": \"http://127.0.0.1:8000/media/avatar.jpg\"\n            },\n            {\n                \"id\": 6,\n                \"username\": \"bovagepos\",\n                \"email\": \"bovagepos@gmail.com\",\n                \"bio\": \"\",\n                \"is_verified\": true,\n                \"is_staff\": true,\n                \"is_superuser\": false,\n                \"date_joined\": \"2022-07-15T07:22:20Z\",\n                \"avatar\": \"http://127.0.0.1:8000/media/avatar/aws7.JPG\"\n            },\n            {\n                \"id\": 3,\n                \"username\": \"bovage\",\n                \"email\": \"bovage@gmail.com\",\n                \"bio\": \"\",\n                \"is_verified\": false,\n                \"is_staff\": false,\n                \"is_superuser\": false,\n                \"date_joined\": \"2022-07-15T07:05:49.107159Z\",\n                \"avatar\": \"http://127.0.0.1:8000/media/avatar.jpg\"\n            },\n            {\n                \"id\": 7,\n                \"username\": \"tobi\",\n                \"email\": \"tobi@gmail.com\",\n                \"bio\": \"\",\n                \"is_verified\": false,\n                \"is_staff\": false,\n                \"is_superuser\": false,\n                \"date_joined\": \"2022-07-19T19:34:54.043520Z\",\n                \"avatar\": \"http://127.0.0.1:8000/media/avatar.jpg\"\n            },\n            {\n                \"id\": 8,\n                \"username\": \"newdave\",\n                \"email\": \"dave@gmail.com\",\n                \"bio\": \"\",\n                \"is_verified\": true,\n                \"is_staff\": false,\n                \"is_superuser\": false,\n                \"date_joined\": \"2022-07-19T19:35:21.972516Z\",\n                \"avatar\": \"http://127.0.0.1:8000/media/avatar.jpg\"\n            },\n            {\n                \"id\": 1,\n                \"username\": \"admin\",\n                \"email\": \"admin@gmail.com\",\n                \"bio\": \"\",\n                \"is_verified\": true,\n                \"is_staff\": true,\n                \"is_superuser\": true,\n                \"date_joined\": \"2022-07-15T06:14:29Z\",\n                \"avatar\": \"http://127.0.0.1:8000/media/avatar.jpg\"\n            }\n        ]\n    }\n}"}],"_postman_id":"e3ee74d2-3e6d-4e3d-936b-053ee9ee4070"}],"id":"601f2b82-48f4-4833-8f6d-6cf1203ba7ef","description":"<p>This contains all endpoints relating to Users.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"19c17039-5df7-47ba-a53c-83c1a285353c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"2b341698-80d4-4078-bd60-a7b46ca4f125","type":"text/javascript","exec":[""]}}],"_postman_id":"601f2b82-48f4-4833-8f6d-6cf1203ba7ef"},{"name":"Questions","item":[{"name":"List Public Questions","id":"0fe55806-a014-4f3f-b10f-4c3ee4a4b617","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"https://quizzybankky.herokuapp.com/api/v1/questions?limit=<integer>&category=<string>&difficulty=<string>&type=<string>&search=<string>","description":"<p>Gets the list of all verified questions available in the database. The verified questions returned can filtered based on category, difficulty and type.</p>\n<p><strong>NB:</strong> ﻿This is the public endpoint that can be used by other developers.</p>\n","urlObject":{"host":["https://quizzybankky.herokuapp.com/api/v1/questions"],"query":[{"description":{"content":"<p>Maximum number is 50. (Not Required)</p>\n","type":"text/plain"},"key":"limit","value":"<integer>"},{"description":{"content":"<p>Slug of available categories.(Not Required)</p>\n","type":"text/plain"},"key":"category","value":"<string>"},{"description":{"content":"<p>Possible value includes eazy, medium &amp; hard.(Not Required)</p>\n","type":"text/plain"},"key":"difficulty","value":"<string>"},{"description":{"content":"<p>Possible value includes eazy, medium &amp; hard.(Not Required)</p>\n","type":"text/plain"},"key":"type","value":"<string>"},{"key":"search","value":"<string>"}],"variable":[]}},"response":[{"id":"832cbc87-15ba-4fb5-aa4b-870bfedc6301","name":"List Public Questions","originalRequest":{"method":"GET","header":[],"url":"https://quizzybankky.herokuapp.com/api/v1/questions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"success\",\r\n    \"message\": \"Question fetched successfully\",\r\n    \"data\": [\r\n        {\r\n            \"id\": 3,\r\n            \"question\": \"First question?\",\r\n            \"difficulty\": \"eazy\",\r\n            \"type\": \"multiple-choice\",\r\n            \"category\": \"programming\",\r\n            \"correct_answer\": \"True\",\r\n            \"incorrect_answers\": [\r\n                \"False\",\r\n                \"Maybe\"\r\n            ],\r\n            \"explanation\": \"This is a very simple question\",\r\n            \"image\": null\r\n        },\r\n        {\r\n            \"id\": 1,\r\n            \"question\": \"Update question working?\",\r\n            \"difficulty\": \"eazy\",\r\n            \"type\": \"True / False\",\r\n            \"category\": \"entertainments\",\r\n            \"correct_answer\": \"True\",\r\n            \"incorrect_answers\": [\r\n                \"Let see\"\r\n            ],\r\n            \"explanation\": \"This is a very simple question\",\r\n            \"image\": null\r\n        },\r\n        {\r\n            \"id\": 4,\r\n            \"question\": \"Filtering working\",\r\n            \"difficulty\": \"medium\",\r\n            \"type\": \"multiple-choice\",\r\n            \"category\": \"programming\",\r\n            \"correct_answer\": \"True\",\r\n            \"incorrect_answers\": [\r\n                \"working🎉\",\r\n                \"bol\"\r\n            ],\r\n            \"explanation\": \"Central Processing Unit -> CPU\",\r\n            \"image\": null\r\n        }\r\n    ]\r\n}"}],"_postman_id":"0fe55806-a014-4f3f-b10f-4c3ee4a4b617"},{"name":"Create Question","id":"abca2c53-0f24-4385-bbf3-5b5fd27136c5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"question","value":"<string>","description":"<p>(Required)</p>\n","type":"text"},{"key":"difficulty","value":"<string>","description":"<p>Possible value include \"eazy\", \"medium\", \"hard\".(Required)</p>\n","type":"text"},{"key":"type","value":"<string>","description":"<p>Possible value include \"multiple-choice\", \"True / False\".(Required)</p>\n","type":"text"},{"key":"category","value":"<integer>","description":"<p>(Required)</p>\n","type":"text"},{"key":"correct_answer","value":"<string>","description":"<p>(Required)</p>\n","type":"text"},{"key":"incorrect_answer_fields.incorrect_answer_1","value":"<string>","description":"<p>(Required)</p>\n","type":"text"},{"key":"incorrect_answer_fields.incorrect_answer_2","value":"<string>","description":"<p>(Not Required)</p>\n","type":"text"},{"key":"incorrect_answer_fields.incorrect_answer_3","value":"<string>","description":"<p>(Not Required)</p>\n","type":"text"},{"key":"explanation","value":"<string>","description":"<p>(Not Required)</p>\n","type":"text"},{"key":"image","description":"<p>(Not Required)</p>\n","type":"file","value":null}]},"url":"https://quizzybankky.herokuapp.com/api/v1/questions/","description":"<p>submit a question.</p>\n","urlObject":{"path":[""],"host":["https://quizzybankky.herokuapp.com/api/v1/questions"],"query":[],"variable":[]}},"response":[{"id":"94d5257c-ebbf-4a07-8bd0-081c670b3b15","name":"Create Question","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <Your Access Token>","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"question","value":"What is django used for?","description":"(Required)","type":"text"},{"key":"difficulty","value":"eazy","description":"(Required)","type":"text"},{"key":"type","value":"multiple-choice","description":"(Required)","type":"text"},{"key":"category","value":"1","description":"(Required)","type":"text"},{"key":"correct_answer","value":"backend","description":"(Required)","type":"text"},{"key":"incorrect_answer_fields.incorrect_answer_1","value":"gui","description":"(Required)","type":"text"},{"key":"incorrect_answer_fields.incorrect_answer_2","value":"graphic design","description":"(Not Required)","type":"text"},{"key":"incorrect_answer_fields.incorrect_answer_3","value":"joking","description":"(Not Required)","type":"text"},{"key":"explanation","value":"Django is a python web framework","description":"(Not Required)","type":"text"},{"key":"image","description":"(Not Required)","type":"file","value":null}]},"url":"https://quizzybankky.herokuapp.com/api/v1/questions/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"success\",\r\n    \"message\": \"Question created successfully\",\r\n    \"data\": {\r\n        \"id\": 5,\r\n        \"question\": \"What is django used for?\",\r\n        \"difficulty\": \"eazy\",\r\n        \"type\": \"multiple-choice\",\r\n        \"category\": \"programming\",\r\n        \"correct_answer\": \"backend\",\r\n        \"incorrect_answers\": [\r\n            \"gui\",\r\n            \"graphic design\",\r\n            \"joking\"\r\n        ],\r\n        \"explanation\": \"\",\r\n        \"image\": null\r\n    }\r\n}"}],"_postman_id":"abca2c53-0f24-4385-bbf3-5b5fd27136c5"},{"name":"Retrieve a Question","id":"1198df93-e57d-4fdf-9264-e21cf7d602e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://quizzybankky.herokuapp.com/api/v1/questions/:questionid","description":"<p>G﻿et details about a question whose ID is passed in the URL.</p>\n","urlObject":{"path":[":questionid"],"host":["https://quizzybankky.herokuapp.com/api/v1/questions"],"query":[],"variable":[{"description":{"content":"<p>The question's ID</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"questionid"}]}},"response":[{"id":"118517e8-7216-4356-9f13-8583c1f9f667","name":"Retrieve a Question","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer <Your Access Token>","type":"text"}],"url":"https://quizzybankky.herokuapp.com/api/v1/questions/5"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"success\",\r\n    \"message\": \"Question - 5 retrieved successfully\",\r\n    \"data\": {\r\n        \"id\": 5,\r\n        \"question\": \"What is django used for?\",\r\n        \"difficulty\": \"eazy\",\r\n        \"type\": \"multiple-choice\",\r\n        \"category\": \"programming\",\r\n        \"correct_answer\": \"backend\",\r\n        \"incorrect_answers\": [\r\n            \"gui\",\r\n            \"graphic design\",\r\n            \"joking\"\r\n        ],\r\n        \"explanation\": \"\",\r\n        \"image\": null\r\n    }\r\n}"}],"_postman_id":"1198df93-e57d-4fdf-9264-e21cf7d602e9"},{"name":"Update Question","id":"819a880f-fce1-44e0-930f-fc1c17de5fb1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"url":"https://quizzybankky.herokuapp.com/api/v1/questions/:questionid","description":"<p>Partially update a question whose ID is passed in the URL.</p>\n","urlObject":{"path":[":questionid"],"host":["https://quizzybankky.herokuapp.com/api/v1/questions"],"query":[],"variable":[{"description":{"content":"<p>The question's ID</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"questionid"}]}},"response":[{"id":"68aac587-cb39-4862-be49-1dbcdda62d63","name":"Update Question","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer <Your Access Token>","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"question","value":"What is django used for? New","description":"(Required)","type":"text"},{"key":"difficulty","value":"eazy","description":"(Required)","type":"text"},{"key":"type","value":"multiple-choice","description":"(Required)","type":"text"},{"key":"category","value":"3","description":"(Required)","type":"text"},{"key":"correct_answer","value":"backend","description":"(Required)","type":"text"},{"key":"incorrect_answer_fields.incorrect_answer_1","value":"gui","description":"(Required)","type":"text"},{"key":"incorrect_answer_fields.incorrect_answer_2","value":"graphic design","description":"(Not Required)","type":"text"},{"key":"incorrect_answer_fields.incorrect_answer_3","value":"joking","description":"(Not Required)","type":"text"}]},"url":"https://quizzybankky.herokuapp.com/api/v1/questions/5"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Question - 5 updated successfully\",\n    \"data\": {\n        \"id\": 5,\n        \"question\": \"What is django used for? New\",\n        \"difficulty\": \"eazy\",\n        \"type\": \"multiple-choice\",\n        \"category\": \"entertainments\",\n        \"correct_answer\": \"backend\",\n        \"incorrect_answers\": [\n            \"gui\",\n            \"graphic design\",\n            \"joking\"\n        ],\n        \"explanation\": \"\",\n        \"image\": null\n    }\n}"}],"_postman_id":"819a880f-fce1-44e0-930f-fc1c17de5fb1"},{"name":"Partial Update Question","id":"c46c5635-351b-4d20-9dd9-f249b231e20d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"url":"https://quizzybankky.herokuapp.com/api/v1/questions/:questionid","description":"<p>Partially update a question whose ID is passed in the URL.</p>\n","urlObject":{"path":[":questionid"],"host":["https://quizzybankky.herokuapp.com/api/v1/questions"],"query":[],"variable":[{"type":"any","value":null,"key":"questionid"}]}},"response":[{"id":"92e5e72a-db34-4005-b1ae-72dab8b10bd5","name":"Partial Update Question","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer <Your Access Token>","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"difficulty","value":"hard","type":"text"}]},"url":"https://quizzybankky.herokuapp.com/api/v1/questions/5"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"success\",\r\n    \"message\": \"Question - 5 updated successfully\",\r\n    \"data\": {\r\n        \"id\": 5,\r\n        \"question\": \"What is django used for? New\",\r\n        \"difficulty\": \"hard\",\r\n        \"type\": \"multiple-choice\",\r\n        \"category\": \"entertainments\",\r\n        \"correct_answer\": \"backend\",\r\n        \"incorrect_answers\": [\r\n            \"gui\",\r\n            \"graphic design\",\r\n            \"joking\"\r\n        ],\r\n        \"explanation\": \"\",\r\n        \"image\": null\r\n    }\r\n}"}],"_postman_id":"c46c5635-351b-4d20-9dd9-f249b231e20d"},{"name":"Delete Question","id":"01009eaf-4ce6-4fd0-b33a-ef2abe6bd15a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"https://quizzybankky.herokuapp.com/api/v1/questions/:questionid","description":"<p>Delete a question whose ID is passed in the URL.</p>\n<p><strong>Staff User Only</strong></p>\n","urlObject":{"path":[":questionid"],"host":["https://quizzybankky.herokuapp.com/api/v1/questions"],"query":[],"variable":[{"description":{"content":"<p>The question's ID</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"questionid"}]}},"response":[{"id":"342a0cb1-4b81-4ae9-b974-fefcdfb5938c","name":"Delete Question","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer <Your Access Token>","type":"text"}],"url":"https://quizzybankky.herokuapp.com/api/v1/questions/5"},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"success\",\r\n    \"message\": \"Question deleted successfully\",\r\n    \"data\": null\r\n}"}],"_postman_id":"01009eaf-4ce6-4fd0-b33a-ef2abe6bd15a"},{"name":"Verify Question","id":"e332b0d3-de4c-4456-8035-015599c7e110","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"https://quizzybankky.herokuapp.com/api/v1/questions/:questionid/verification","description":"<p>Verify a question whose ID is passed in the URL.</p>\n<p><strong>Staff User Only</strong></p>\n","urlObject":{"path":[":questionid","verification"],"host":["https://quizzybankky.herokuapp.com/api/v1/questions"],"query":[],"variable":[{"description":{"content":"<p>The question's ID</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"questionid"}]}},"response":[{"id":"6b153201-c3b1-406e-80e3-941a6a8f007e","name":"Verify Question","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <Your Access Token>","type":"text"}],"url":"https://quizzybankky.herokuapp.com/api/v1/questions/5/verification"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"success\",\r\n    \"message\": \"admin verifies question-5: What is django used for? New\",\r\n    \"data\": []\r\n}"}],"_postman_id":"e332b0d3-de4c-4456-8035-015599c7e110"},{"name":"Unverify Question","id":"af44f060-0d97-4d38-bd38-bb64c57a567a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"https://quizzybankky.herokuapp.com/api/v1/questions/:questionid/verification","description":"<p>Unverify a question whose ID is passed in the URL.</p>\n<p><strong>Staff User Only</strong></p>\n","urlObject":{"path":[":questionid","verification"],"host":["https://quizzybankky.herokuapp.com/api/v1/questions"],"query":[],"variable":[{"type":"any","value":null,"key":"questionid"}]}},"response":[{"id":"c1c0d6e6-6f77-4962-8795-f56b0b7797cd","name":"Unverify Question","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer <Your Access Token>","type":"text"}],"url":"https://quizzybankky.herokuapp.com/api/v1/questions/5/verification"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"success\",\r\n    \"message\": \"admin unverifies question-5: What is django used for? New\",\r\n    \"data\": []\r\n}"}],"_postman_id":"af44f060-0d97-4d38-bd38-bb64c57a567a"},{"name":"Full Questions List","id":"dbfc1389-7fa5-45b2-b40e-1277100b9ea9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://quizzybankky.herokuapp.com/api/v1/questions/full","description":"<p>Gets all details on all the questions in the database.</p>\n<p><strong>Staff User Only</strong></p>\n<p><strong>Paginated Response</strong></p>\n","urlObject":{"path":["full"],"host":["https://quizzybankky.herokuapp.com/api/v1/questions"],"query":[],"variable":[]}},"response":[{"id":"1987c215-e1a5-4d39-bd3d-0a09022e9f1c","name":"Full Questions List","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer <Your Access Token>","equals":true}],"url":"https://quizzybankky.herokuapp.com/api/v1/questions/full"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"success\",\r\n    \"message\": \"All Questions fetched successfully\",\r\n    \"data\": {\r\n        \"count\": 3,\r\n        \"next\": null,\r\n        \"previous\": null,\r\n        \"results\": [\r\n            {\r\n                \"id\": 4,\r\n                \"question\": \"Filtering working\",\r\n                \"difficulty\": \"medium\",\r\n                \"type\": \"multiple-choice\",\r\n                \"category\": \"programming\",\r\n                \"correct_answer\": \"True\",\r\n                \"incorrect_answers\": [\r\n                    \"working🎉\",\r\n                    \"bol\"\r\n                ],\r\n                \"explanation\": \"Central Processing Unit -> CPU\",\r\n                \"image\": null,\r\n                \"created_by\": \"admin\",\r\n                \"date_created\": \"2022-07-16T07:35:48.023648Z\",\r\n                \"is_verified\": true,\r\n                \"verified_by\": \"bovage\",\r\n                \"date_verified\": \"2022-07-16T07:35:22Z\"\r\n            },\r\n            {\r\n                \"id\": 3,\r\n                \"question\": \"First question?\",\r\n                \"difficulty\": \"eazy\",\r\n                \"type\": \"multiple-choice\",\r\n                \"category\": \"programming\",\r\n                \"correct_answer\": \"True\",\r\n                \"incorrect_answers\": [\r\n                    \"False\",\r\n                    \"Maybe\"\r\n                ],\r\n                \"explanation\": \"This is a very simple question\",\r\n                \"image\": null,\r\n                \"created_by\": \"bovagepos\",\r\n                \"date_created\": \"2022-07-16T05:50:27.179652Z\",\r\n                \"is_verified\": true,\r\n                \"verified_by\": \"bovagepos\",\r\n                \"date_verified\": \"2022-07-15T17:51:32.433647Z\"\r\n            },\r\n            {\r\n                \"id\": 1,\r\n                \"question\": \"Update question working?\",\r\n                \"difficulty\": \"eazy\",\r\n                \"type\": \"True / False\",\r\n                \"category\": \"entertainments\",\r\n                \"correct_answer\": \"True\",\r\n                \"incorrect_answers\": [\r\n                    \"Let see\"\r\n                ],\r\n                \"explanation\": \"This is a very simple question\",\r\n                \"image\": null,\r\n                \"created_by\": \"bovagepos\",\r\n                \"date_created\": \"2022-07-16T05:28:15.727645Z\",\r\n                \"is_verified\": true,\r\n                \"verified_by\": \"bovagep\",\r\n                \"date_verified\": \"2022-07-18T00:33:17Z\"\r\n            }\r\n        ]\r\n    }\r\n}"}],"_postman_id":"dbfc1389-7fa5-45b2-b40e-1277100b9ea9"},{"name":"Unverified Questions","id":"0de76c85-c2e3-4df6-b7ad-c21071a5ddc1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://quizzybankky.herokuapp.com/api/v1/questions/unverified","description":"<p>Get the list of unverified questions.</p>\n<p><strong>Staff User Only</strong></p>\n<p><strong>Paginated Response</strong></p>\n","urlObject":{"path":["unverified"],"host":["https://quizzybankky.herokuapp.com/api/v1/questions"],"query":[],"variable":[]}},"response":[{"id":"b87031a8-96e4-4121-92c0-b080de3ee2d9","name":"Unverified Questions","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer <Your Access Token>","type":"text"}],"url":"https://quizzybankky.herokuapp.com/api/v1/questions/unverified"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"success\",\r\n    \"message\": \"All Unverified Questions fetched successfully\",\r\n    \"data\": {\r\n        \"count\": 0,\r\n        \"next\": null,\r\n        \"previous\": null,\r\n        \"results\": []\r\n    }\r\n}"}],"_postman_id":"0de76c85-c2e3-4df6-b7ad-c21071a5ddc1"}],"id":"359eaf6b-8602-498b-896a-70f84571583c","description":"<p>This contains all endpoints relating Questions.</p>\n","_postman_id":"359eaf6b-8602-498b-896a-70f84571583c"},{"name":"Categories","item":[{"name":"List Categories","id":"11fc06e9-b3a4-4af1-9e41-b16046222e1c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"https://quizzybankky.herokuapp.com/api/v1/categories","description":"<p>Get the list of the categories in the database.</p>\n<p><strong>Paginated Response</strong></p>\n","urlObject":{"host":["https://quizzybankky.herokuapp.com/api/v1/categories"],"query":[],"variable":[]}},"response":[{"id":"f8bfbe0b-0b31-4376-991f-aed8bc1c0bba","name":"List Categories","originalRequest":{"method":"GET","header":[],"url":"https://quizzybankky.herokuapp.com/api/v1/categories"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"success\",\r\n    \"message\": \"All Categories fetched successfully\",\r\n    \"data\": {\r\n        \"count\": 8,\r\n        \"next\": null,\r\n        \"previous\": null,\r\n        \"results\": [\r\n            {\r\n                \"id\": 1,\r\n                \"name\": \"Programming\",\r\n                \"slug\": \"programming\"\r\n            },\r\n            {\r\n                \"id\": 2,\r\n                \"name\": \"Nature\",\r\n                \"slug\": \"nature\"\r\n            },\r\n            {\r\n                \"id\": 4,\r\n                \"name\": \"Computer science\",\r\n                \"slug\": \"computer-science\"\r\n            },\r\n            {\r\n                \"id\": 7,\r\n                \"name\": \"Animals\",\r\n                \"slug\": \"animals\"\r\n            },\r\n            {\r\n                \"id\": 3,\r\n                \"name\": \"Entertainments\",\r\n                \"slug\": \"entertainments\"\r\n            },\r\n            {\r\n                \"id\": 8,\r\n                \"name\": \"Political science\",\r\n                \"slug\": \"political-science\"\r\n            },\r\n            {\r\n                \"id\": 9,\r\n                \"name\": \"Movies: Good Doctor\",\r\n                \"slug\": \"movies-good-doctor\"\r\n            },\r\n            {\r\n                \"id\": 10,\r\n                \"name\": \"Computer science: DSA\",\r\n                \"slug\": \"computer-science-dsa\"\r\n            }\r\n        ]\r\n    }\r\n}"}],"_postman_id":"11fc06e9-b3a4-4af1-9e41-b16046222e1c"},{"name":"Create Category","id":"7493efea-e34e-4393-b346-b4db435c61c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"<string>","description":"<p>(Required)</p>\n","type":"text"},{"key":"slug","value":"<string>","description":"<p>(Not Required)</p>\n","type":"text"}]},"url":"https://quizzybankky.herokuapp.com/api/v1/categories/","description":"<p>Create a new category.</p>\n<p><strong>Staff User Only</strong></p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"de6395c7-a91b-44b1-97a5-8c3a83e914cd","id":"de6395c7-a91b-44b1-97a5-8c3a83e914cd","name":"Categories","type":"folder"}},"urlObject":{"path":[""],"host":["https://quizzybankky.herokuapp.com/api/v1/categories"],"query":[],"variable":[]}},"response":[{"id":"5651a4e0-2419-48cc-bac7-b6c0e38b904f","name":"Create Category","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <Your Access Token>","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"joking","description":"(Required)","type":"text"}]},"url":"https://quizzybankky.herokuapp.com/api/v1/categories/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"success\",\r\n    \"message\": \"Category - joking created successfully\",\r\n    \"data\": {\r\n        \"id\": 11,\r\n        \"name\": \"joking\",\r\n        \"slug\": \"joking\"\r\n    }\r\n}"}],"_postman_id":"7493efea-e34e-4393-b346-b4db435c61c2"},{"name":"Category Detail","id":"72ab84b5-fdad-472a-a1c8-ae1355d7f868","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://quizzybankky.herokuapp.com/api/v1/categories/:categoryslug","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"de6395c7-a91b-44b1-97a5-8c3a83e914cd","id":"de6395c7-a91b-44b1-97a5-8c3a83e914cd","name":"Categories","type":"folder"}},"urlObject":{"path":[":categoryslug"],"host":["https://quizzybankky.herokuapp.com/api/v1/categories"],"query":[],"variable":[{"type":"any","value":"<slug>","key":"categoryslug"}]}},"response":[{"id":"b939722a-ab08-4f18-9305-5f1798f3c8ce","name":"Category Detail","originalRequest":{"method":"GET","header":[],"url":"https://quizzybankky.herokuapp.com/api/v1/categories/computer-science-dsa"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"success\",\r\n    \"message\": \"Category - Computer science: DSA retrieved successfully\",\r\n    \"data\": {\r\n        \"id\": 10,\r\n        \"name\": \"Computer science: DSA\",\r\n        \"slug\": \"computer-science-dsa\"\r\n    }\r\n}"}],"_postman_id":"72ab84b5-fdad-472a-a1c8-ae1355d7f868"},{"name":"Delete Category","id":"65cc71c5-223b-41c0-b481-e44d940113cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://quizzybankky.herokuapp.com/api/v1/categories/:categoryslug","description":"<p>Delete a category whose slug is passed in the URL.</p>\n<p><strong>Staff User Only</strong></p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"de6395c7-a91b-44b1-97a5-8c3a83e914cd","id":"de6395c7-a91b-44b1-97a5-8c3a83e914cd","name":"Categories","type":"folder"}},"urlObject":{"path":[":categoryslug"],"host":["https://quizzybankky.herokuapp.com/api/v1/categories"],"query":[],"variable":[{"type":"any","value":"<slug>","key":"categoryslug"}]}},"response":[{"id":"0525ab54-0b0e-4c9f-ab71-671378b0b124","name":"Delete Category","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer <Your Access Token>","type":"text"}],"url":"https://quizzybankky.herokuapp.com/api/v1/categories/joking"},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"success\",\r\n    \"message\": \"Category deleted successfully\",\r\n    \"data\": null\r\n}"}],"_postman_id":"65cc71c5-223b-41c0-b481-e44d940113cd"},{"name":"Update Category","id":"9bbff322-ed08-4379-a65a-2937a558f777","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"https://quizzybankky.herokuapp.com/api/v1/categories/:categoryslug","description":"<p><strong>Staff User Only</strong></p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"de6395c7-a91b-44b1-97a5-8c3a83e914cd","id":"de6395c7-a91b-44b1-97a5-8c3a83e914cd","name":"Categories","type":"folder"}},"urlObject":{"path":[":categoryslug"],"host":["https://quizzybankky.herokuapp.com/api/v1/categories"],"query":[],"variable":[{"type":"any","value":"<slug>","key":"categoryslug"}]}},"response":[{"id":"eea3ed20-083f-43c9-8a37-34d8b2a29e40","name":"Update Category","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer <Your Access Token>","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Joking","type":"text"},{"key":"slug","value":"joking","type":"text"}]},"url":"https://quizzybankky.herokuapp.com/api/v1/categories/entertainments"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"success\",\r\n    \"message\": \"Category - Joking updated successfully\",\r\n    \"data\": {\r\n        \"id\": 3,\r\n        \"name\": \"Joking\",\r\n        \"slug\": \"joking\"\r\n    }\r\n}"}],"_postman_id":"9bbff322-ed08-4379-a65a-2937a558f777"},{"name":"Partial Update Category","id":"998c8cef-3333-495e-9c63-177090547dc1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"https://quizzybankky.herokuapp.com/api/v1/categories/:categoryslug","description":"<p><strong>Staff User Only</strong></p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"de6395c7-a91b-44b1-97a5-8c3a83e914cd","id":"de6395c7-a91b-44b1-97a5-8c3a83e914cd","name":"Categories","type":"folder"}},"urlObject":{"path":[":categoryslug"],"host":["https://quizzybankky.herokuapp.com/api/v1/categories"],"query":[],"variable":[{"type":"any","value":"<slug>","key":"categoryslug"}]}},"response":[{"id":"9fa7fec2-acf3-4fb7-af8c-f37de5d4c7dc","name":"Partial Update Category","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer <Your Access Token>","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Joking","type":"text"},{"key":"slug","value":"joking","type":"text"}]},"url":"https://quizzybankky.herokuapp.com/api/v1/categories/entertainments"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"success\",\r\n    \"message\": \"Category - Joking updated successfully\",\r\n    \"data\": {\r\n        \"id\": 3,\r\n        \"name\": \"Joking\",\r\n        \"slug\": \"joking\"\r\n    }\r\n}"}],"_postman_id":"998c8cef-3333-495e-9c63-177090547dc1"}],"id":"de6395c7-a91b-44b1-97a5-8c3a83e914cd","description":"<p>This contains all endpoints relating to categories.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"4d5adce1-18d2-4d38-b373-f73d19f8461e","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"d4659427-5d22-41d5-ab54-fdc8a91d08af","type":"text/javascript","exec":[""]}}],"_postman_id":"de6395c7-a91b-44b1-97a5-8c3a83e914cd"},{"name":"Feedback","item":[{"name":"List Feedback","id":"bcfe6ea7-370c-4061-9fad-ed68b0c9c81c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://quizzybankky.herokuapp.com/api/v1/feedback","description":"<p>Get all feedback in the database.</p>\n<p><strong>Staff User Only</strong></p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"98cd26d8-c9d6-4682-af93-c112b0eadb6c","id":"98cd26d8-c9d6-4682-af93-c112b0eadb6c","name":"Feedback","type":"folder"}},"urlObject":{"host":["https://quizzybankky.herokuapp.com/api/v1/feedback"],"query":[],"variable":[]}},"response":[{"id":"1fadfc75-a884-4bdb-9414-9de904fe38d7","name":"List Feedback","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer <Your Access Token>","type":"text"}],"url":"https://quizzybankky.herokuapp.com/api/v1/feedback"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"success\",\r\n    \"message\": \"All feedback fetched successfully\",\r\n    \"data\": {\r\n        \"count\": 6,\r\n        \"next\": null,\r\n        \"previous\": null,\r\n        \"results\": [\r\n            {\r\n                \"id\": 1,\r\n                \"question\": 3,\r\n                \"issue\": \"answer incorrect\",\r\n                \"explanation\": \"answer incorrect\",\r\n                \"created_by\": \"admin\",\r\n                \"date_created\": \"2022-07-17T06:01:14.024474Z\"\r\n            },\r\n            {\r\n                \"id\": 2,\r\n                \"question\": 3,\r\n                \"issue\": \"answer incorrect\",\r\n                \"explanation\": \"answer incorrect\",\r\n                \"created_by\": \"admin\",\r\n                \"date_created\": \"2022-07-17T06:02:15.571476Z\"\r\n            },\r\n            {\r\n                \"id\": 3,\r\n                \"question\": 3,\r\n                \"issue\": \"answer incorrect\",\r\n                \"explanation\": \"Central Processing Unit -> CPU\",\r\n                \"created_by\": \"admin\",\r\n                \"date_created\": \"2022-07-17T06:15:19.850469Z\"\r\n            },\r\n            {\r\n                \"id\": 5,\r\n                \"question\": 1,\r\n                \"issue\": \"entertainments\",\r\n                \"explanation\": \"entertainments\",\r\n                \"created_by\": \"bovagepos\",\r\n                \"date_created\": \"2022-07-17T06:53:20.708147Z\"\r\n            },\r\n            {\r\n                \"id\": 6,\r\n                \"question\": 1,\r\n                \"issue\": \"entertainments\",\r\n                \"explanation\": \"entertainments\",\r\n                \"created_by\": \"bovagepos\",\r\n                \"date_created\": \"2022-07-17T06:55:16.721137Z\"\r\n            },\r\n            {\r\n                \"id\": 7,\r\n                \"question\": 1,\r\n                \"issue\": \"entertainments\",\r\n                \"explanation\": \"entertainments\",\r\n                \"created_by\": \"bovagepos\",\r\n                \"date_created\": \"2022-07-17T06:55:25.652143Z\"\r\n            }\r\n        ]\r\n    }\r\n}"}],"_postman_id":"bcfe6ea7-370c-4061-9fad-ed68b0c9c81c"},{"name":"Create Feedback","id":"91d03478-e1d6-4ff8-bbb2-04e0c0789750","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"question","value":"<integer>","description":"<p>A question ID.(Required)</p>\n","type":"text"},{"key":"issue","value":"<string>","description":"<p>(Required)</p>\n","type":"text"},{"key":"explanation","value":"<string>","description":"<p>(Required)</p>\n","type":"text"},{"key":"","value":"","type":"text","disabled":true}]},"url":"https://quizzybankky.herokuapp.com/api/v1/feedback/","description":"<p>Create a Feedback.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"98cd26d8-c9d6-4682-af93-c112b0eadb6c","id":"98cd26d8-c9d6-4682-af93-c112b0eadb6c","name":"Feedback","type":"folder"}},"urlObject":{"path":[""],"host":["https://quizzybankky.herokuapp.com/api/v1/feedback"],"query":[],"variable":[]}},"response":[{"id":"0c80026e-4ebd-436c-9600-531376178fa0","name":"Create Feedback","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <Your Access Token>","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"question","value":"3","type":"text"},{"key":"issue","value":"Incorrect answer","type":"text"},{"key":"explanation","value":"Incorrect answer Incorrect answer","type":"text"}]},"url":"https://quizzybankky.herokuapp.com/api/v1/feedback/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"success\",\r\n    \"message\": \"Feedback created successfully\",\r\n    \"data\": {\r\n        \"id\": 9,\r\n        \"question\": 3,\r\n        \"issue\": \"Incorrect answer\",\r\n        \"explanation\": \"Incorrect answer Incorrect answer\",\r\n        \"created_by\": \"admin\",\r\n        \"date_created\": \"2022-07-19T20:44:22.040513Z\"\r\n    }\r\n}"}],"_postman_id":"91d03478-e1d6-4ff8-bbb2-04e0c0789750"},{"name":"Feedback Detail","id":"f6793e0f-6b27-4ddb-a23d-45187810b33c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://quizzybankky.herokuapp.com/api/v1/feedback/:feedbackid","description":"<p><strong>Staff User Only</strong></p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"98cd26d8-c9d6-4682-af93-c112b0eadb6c","id":"98cd26d8-c9d6-4682-af93-c112b0eadb6c","name":"Feedback","type":"folder"}},"urlObject":{"path":[":feedbackid"],"host":["https://quizzybankky.herokuapp.com/api/v1/feedback"],"query":[],"variable":[{"description":{"content":"<p>The feedback's ID</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"feedbackid"}]}},"response":[{"id":"3be89376-9885-4bd0-9e53-109a9f863a1e","name":"Feedback Detail","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer <Your Access Token>","type":"text"}],"url":"https://quizzybankky.herokuapp.com/api/v1/feedback/9"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"success\",\r\n    \"message\": \"Feedback retrieved successfully\",\r\n    \"data\": {\r\n        \"id\": 9,\r\n        \"issue\": \"Incorrect answer\",\r\n        \"explanation\": \"Incorrect answer Incorrect answer\",\r\n        \"date_created\": \"2022-07-19T20:44:22.040513Z\",\r\n        \"is_resolved\": false,\r\n        \"date_resolved\": null,\r\n        \"question\": 3,\r\n        \"created_by\": 1,\r\n        \"resolved_by\": null\r\n    }\r\n}"}],"_postman_id":"f6793e0f-6b27-4ddb-a23d-45187810b33c"},{"name":"Delete Feedback","id":"5944eb84-c445-4207-a6f0-53b1dbafa9b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://quizzybankky.herokuapp.com/api/v1/feedback/:feedbackid","description":"<p><strong>Staff User Only</strong></p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"98cd26d8-c9d6-4682-af93-c112b0eadb6c","id":"98cd26d8-c9d6-4682-af93-c112b0eadb6c","name":"Feedback","type":"folder"}},"urlObject":{"path":[":feedbackid"],"host":["https://quizzybankky.herokuapp.com/api/v1/feedback"],"query":[],"variable":[{"description":{"content":"<p>A feedback ID</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"feedbackid"}]}},"response":[{"id":"a2dc6378-0ab2-4533-b3a8-7b9f7d456492","name":"Delete Feedback","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer <Your Access Token>","type":"text"}],"url":"https://quizzybankky.herokuapp.com/api/v1/feedback/9"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"success\",\r\n    \"message\": \"Feedback deleted successfully\",\r\n    \"data\": null\r\n}"}],"_postman_id":"5944eb84-c445-4207-a6f0-53b1dbafa9b2"},{"name":"Update Feedback","id":"06245afa-ea0f-4eb0-9a5c-b810c2d7a97d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"question","value":"<integer>","description":"<p>A question ID.(Required)</p>\n","type":"text"},{"key":"issue","value":"<string>","description":"<p>(Required)</p>\n","type":"text"},{"key":"explanation","value":"<string>","description":"<p>(Required)</p>\n","type":"text"}]},"url":"https://quizzybankky.herokuapp.com/api/v1/feedback/:feedbackid","description":"<p><strong>Staff User Only</strong></p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"98cd26d8-c9d6-4682-af93-c112b0eadb6c","id":"98cd26d8-c9d6-4682-af93-c112b0eadb6c","name":"Feedback","type":"folder"}},"urlObject":{"path":[":feedbackid"],"host":["https://quizzybankky.herokuapp.com/api/v1/feedback"],"query":[],"variable":[{"type":"any","value":"<integer>","key":"feedbackid"}]}},"response":[{"id":"eef33ddf-a3ba-4b1a-b385-abfd611121fd","name":"Update Feedback","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer <Your Access Token>","type":"text"}],"url":"https://quizzybankky.herokuapp.com/api/v1/feedback/9"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"success\",\r\n    \"message\": \"Feedback deleted successfully\",\r\n    \"data\": null\r\n}"}],"_postman_id":"06245afa-ea0f-4eb0-9a5c-b810c2d7a97d"},{"name":"Partial Update Feedback","id":"e7af6663-fd4d-4098-a342-753f593c22cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"https://quizzybankky.herokuapp.com/api/v1/feedback/:feedbackid","description":"<p>Partially update the feedback whose ID is passed in the URL.</p>\n<p><strong>Staff User Only</strong></p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"98cd26d8-c9d6-4682-af93-c112b0eadb6c","id":"98cd26d8-c9d6-4682-af93-c112b0eadb6c","name":"Feedback","type":"folder"}},"urlObject":{"path":[":feedbackid"],"host":["https://quizzybankky.herokuapp.com/api/v1/feedback"],"query":[],"variable":[{"type":"any","value":"<integer>","key":"feedbackid"}]}},"response":[{"id":"c636781b-bb95-4a38-aae0-cf4229bf951d","name":"Partial Update Feedback","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer <Your Access Token>","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"question","value":"1","type":"text"}]},"url":"https://quizzybankky.herokuapp.com/api/v1/feedback/1"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"success\",\r\n    \"message\": \"Feedback updated successfully\",\r\n    \"data\": {\r\n        \"id\": 1,\r\n        \"issue\": \"answer incorrect\",\r\n        \"explanation\": \"answer incorrect\",\r\n        \"date_created\": \"2022-07-17T06:01:14.024474Z\",\r\n        \"is_resolved\": false,\r\n        \"date_resolved\": null,\r\n        \"question\": 1,\r\n        \"created_by\": 1,\r\n        \"resolved_by\": null\r\n    }\r\n}"}],"_postman_id":"e7af6663-fd4d-4098-a342-753f593c22cc"}],"id":"98cd26d8-c9d6-4682-af93-c112b0eadb6c","description":"<p>T﻿his contains all endpoints relating to Feedback.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"6071df38-2ac7-45f6-bd9b-0e20d2ba466a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"24ce5b1b-2051-40b8-804e-113afa2b7687","type":"text/javascript","exec":[""]}}],"_postman_id":"98cd26d8-c9d6-4682-af93-c112b0eadb6c"},{"name":"Statistics","item":[{"name":"All Statistics","id":"bbe47214-403b-4d7b-adbf-161ef808a288","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"https://quizzybankky.herokuapp.com/api/v1/statistics?on=<string>","description":"<p>Get statistics on questions, users, category, activity and difficulty.</p>\n<p>The response can be filtered based on question, user, category, difficulty, activity.</p>\n","urlObject":{"host":["https://quizzybankky.herokuapp.com/api/v1/statistics"],"query":[{"description":{"content":"<p>Possible value includes category', difficulty, question, users &amp; activity .(Not Required)</p>\n","type":"text/plain"},"key":"on","value":"<string>"}],"variable":[]}},"response":[{"id":"ba814ba3-f486-4ad8-8ae9-c3662cbf7c3e","name":"All Statistics","originalRequest":{"method":"GET","header":[],"url":"https://quizzybankky.herokuapp.com/api/v1/statistics"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Statistics about questions,category, difficulty, users, activity\",\n    \"data\": {\n        \"question\": {\n            \"all_questions\": 3,\n            \"verified_questions\": 2,\n            \"unverified_questions\": 1\n        },\n        \"difficulty\": {\n            \"eazy\": 2,\n            \"medium\": 1,\n            \"hard\": 0\n        },\n        \"category\": {\n            \"Programming\": 2,\n            \"Nature\": 0,\n            \"Computer science\": 0,\n            \"Animals\": 0,\n            \"Entertainments\": 1\n        },\n        \"users\": {\n            \"Total Users\": 6,\n            \"Total Staff\": 3\n        },\n        \"activity\": {\n            \"last_created\": \"2022-07-16T07:35:48.023648Z\",\n            \"last_verified\": \"2022-07-16T07:35:22Z\"\n        }\n    }\n}"},{"id":"60bed8fa-aa9b-4842-a551-f1458d612f4a","name":"Question Statistics","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://quizzybankky.herokuapp.com/api/v1/statistics?on=question","host":["https://quizzybankky.herokuapp.com/api/v1/statistics"],"query":[{"key":"on","value":"question","description":"Possible value includes category', difficulty, question, users & activity .(Not Required)"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Statistics on question\",\n    \"data\": {\n        \"question\": {\n            \"all_questions\": 3,\n            \"verified_questions\": 2,\n            \"unverified_questions\": 1\n        }\n    }\n}"},{"id":"d50c8d00-3228-4b03-b960-397de1e80299","name":"Category Statistics","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://quizzybankky.herokuapp.com/api/v1/statistics?on=category","host":["https://quizzybankky.herokuapp.com/api/v1/statistics"],"query":[{"key":"on","value":"category","description":"Possible value includes category', difficulty, question, users & activity .(Not Required)"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Statistics on category\",\n    \"data\": {\n        \"category\": {\n            \"Programming\": 2,\n            \"Nature\": 0,\n            \"Computer science\": 0,\n            \"Animals\": 0,\n            \"Entertainments\": 1\n        }\n    }\n}"},{"id":"ca1bb5c8-68f2-42db-b27c-039839f81e82","name":"Difficulty Statistics","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://quizzybankky.herokuapp.com/api/v1/statistics?on=difficulty","host":["https://quizzybankky.herokuapp.com/api/v1/statistics"],"query":[{"key":"on","value":"difficulty","description":"Possible value includes category', difficulty, question, users & activity .(Not Required)"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Statistics on difficulty\",\n    \"data\": {\n        \"difficulty\": {\n            \"eazy\": 2,\n            \"medium\": 1,\n            \"hard\": 0\n        }\n    }\n}"},{"id":"b2dbf9f0-0a76-45d8-a2bc-b75849fe4a60","name":"Users Statistics","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://quizzybankky.herokuapp.com/api/v1/statistics?on=users","host":["https://quizzybankky.herokuapp.com/api/v1/statistics"],"query":[{"key":"on","value":"users","description":"Possible value includes category', difficulty, question, users & activity .(Not Required)"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Statistics on users\",\n    \"data\": {\n        \"users\": {\n            \"Total Users\": 6,\n            \"Total Staff\": 3\n        }\n    }\n}"},{"id":"1d23448a-1c7c-42b3-9256-2b8d9185966d","name":"Activity Statistics","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://quizzybankky.herokuapp.com/api/v1/statistics?on=activity","host":["https://quizzybankky.herokuapp.com/api/v1/statistics"],"query":[{"key":"on","value":"activity","description":"Possible value includes category', difficulty, question, users & activity .(Not Required)"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Statistics on activity\",\n    \"data\": {\n        \"activity\": {\n            \"last_created\": \"2022-07-16T07:35:48.023648Z\",\n            \"last_verified\": \"2022-07-16T07:35:22Z\"\n        }\n    }\n}"}],"_postman_id":"bbe47214-403b-4d7b-adbf-161ef808a288"}],"id":"2018031d-0003-4078-8476-99d54203142c","description":"<p>This contains statistical information about the app.</p>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"098bfdaa-a76d-46d9-98c4-b58275cf90e1","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"6df1bef7-a269-43c8-a9d7-4ca37b13ff80","type":"text/javascript","exec":[""]}}],"_postman_id":"2018031d-0003-4078-8476-99d54203142c"}],"event":[{"listen":"prerequest","script":{"id":"e45ec9fa-f25d-4e92-887e-78fa4bf0656f","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"40af02a6-2403-4181-b008-f55ddd11c57d","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseUrl","value":"https://quizzybankky.herokuapp.com/api/v1/","type":"string"}]}