{"info":{"_postman_id":"e0068bd0-eb9c-43ad-8adf-d4e8cec8c8eb","name":"ONLINE TUTORING API ","description":"<html><head></head><body><p>This is an API built to facilitate or provide the backbone for an online tutoring system.\nIt includes several resources that make up its implementation and endpoints that can carry out actions on the resources.\nThese resources are:\n -Categories\n -Subjects\n -Tutors\n -Students\n -Lessons</p>\n<p>Subjects are stored in categories, and lessons on those subjects can be booked between tutors and students.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"11123808","collectionId":"e0068bd0-eb9c-43ad-8adf-d4e8cec8c8eb","publishedId":"Szme4dPZ","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-05-07T18:16:13.000Z"},"item":[{"name":"Tutors","item":[{"name":"TUTOR/ADMIN SIGNUP","id":"b4e88608-417f-4eeb-a84a-25e3d17710dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"firstname","value":"Bassey","type":"text"},{"key":"lastname","value":"Janet","type":"text"},{"key":"email","value":"bassey@mail.com","type":"text"},{"key":"password","value":"bassey","type":"text"},{"key":"experience","value":"2","type":"text"}]},"url":"https://online-tutoring-system-api.herokuapp.com/api/v1/tutors/signup","description":"<p>This is the endpoint for signing up as a tutor.\nDetails needed are: firstname, lastname, email, password, experience(years of experience)</p>\n<p><strong>Only tutors with 3 or more years of experience become admins.</strong></p>\n","urlObject":{"protocol":"https","path":["api","v1","tutors","signup"],"host":["online-tutoring-system-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"72fe8e45-32d0-43a4-91f0-2f381f4315b3","name":"TUTOR SIGNUP EXAMPLE","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"firstname","value":"Bassey","type":"text"},{"key":"lastname","value":"Janet","type":"text"},{"key":"email","value":"bassey@mail.com","type":"text"},{"key":"password","value":"bassey","type":"text"},{"key":"experience","value":"2","type":"text"}]},"url":"http://localhost:5000/api/v1/tutors/signup"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"65"},{"key":"ETag","value":"W/\"41-SPjONx5bItpAm5ncEU+wCFI+r20\""},{"key":"Date","value":"Thu, 07 May 2020 18:08:41 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"Welcome to the online tutoring system\"\n}"}],"_postman_id":"b4e88608-417f-4eeb-a84a-25e3d17710dd"},{"name":"TUTOR/ADMIN LOGIN","id":"bcf0bd5e-a390-4eae-8644-d1cc6468b7a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"bassey@mail.com","type":"text"},{"key":"password","value":"bassey","type":"text"}]},"url":"https://online-tutoring-system-api.herokuapp.com/api/v1/tutors/login","description":"<p>This is an endpoint to where a tutor can log in.\nDetails needed are: email and password.\nThis returns a token used to authorize the tutor for any further actions taken by the tutor on the system.</p>\n","urlObject":{"protocol":"https","path":["api","v1","tutors","login"],"host":["online-tutoring-system-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"08b765cd-c095-4026-9d38-484fd1efb20e","name":"TUTOR/ADMIN LOGIN EXAMPLE","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"bassey@mail.com","type":"text"},{"key":"password","value":"bassey","type":"text"}]},"url":"http://localhost:5000/api/v1/tutors/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"298"},{"key":"ETag","value":"W/\"12a-U1ovxrJ4ra6OpwMHk9gdEfhc5/c\""},{"key":"Date","value":"Thu, 07 May 2020 18:24:29 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"5eb44ea81dfcad39a471aca2\",\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImJhc3NleUBtYWlsLmNvbSIsIl9pZCI6IjVlYjQ0ZWE4MWRmY2FkMzlhNDcxYWNhMiIsInJvbGUiOiJ0dXRvciIsImFkbWluc3RhdHVzIjpmYWxzZSwiaWF0IjoxNTg4ODc1ODY5LCJleHAiOjE1ODg5MTkwNjl9.ITBeWq--712wucVuptt--R4jJZnU9Guh9UjwayCzGHY\"\n}"}],"_postman_id":"bcf0bd5e-a390-4eae-8644-d1cc6468b7a1"},{"name":"GET ALL TUTORS","id":"10515fbe-51c8-4944-9402-c4f24330d9f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg5MzU4NDYyLCJleHAiOjE1ODk0MDE2NjJ9.LzIpV81AovpdErf5unGA3b1abM8M4VCygwhIYZXpx1A","type":"text"}],"url":"https://online-tutoring-system-api.herokuapp.com/api/v1/tutors/","description":"<p>This is an endpoint to view all tutors.</p>\n<p>It can only be accessed by admins.</p>\n","urlObject":{"protocol":"https","path":["api","v1","tutors",""],"host":["online-tutoring-system-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"16237920-47f4-45aa-a7be-4f64874777e0","name":"GET ALL TUTORS EXAMPLE","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg5MzU4NDYyLCJleHAiOjE1ODk0MDE2NjJ9.LzIpV81AovpdErf5unGA3b1abM8M4VCygwhIYZXpx1A","type":"text"}],"url":"https://online-tutoring-system-api.herokuapp.com/api/v1/tutors/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2474"},{"key":"Etag","value":"W/\"9aa-ZTTvCXEIzNiZ8qCnZ9kVVX506dA\""},{"key":"Date","value":"Wed, 13 May 2020 08:33:53 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"role\": \"tutor\",\n        \"subjects\": [\n            \"5eb458071dfcad39a471aca7\"\n        ],\n        \"lessons\": [\n            \"5eb4679d1dfcad39a471acad\"\n        ],\n        \"adminstatus\": true,\n        \"activation_status\": true,\n        \"_id\": \"5eb44d891dfcad39a471aca1\",\n        \"firstname\": \"Abraham\",\n        \"lastname\": \"Lincoln\",\n        \"email\": \"abraham@mail.com\",\n        \"experience\": 4,\n        \"createdAt\": \"2020-05-07T18:03:53.177Z\",\n        \"updatedAt\": \"2020-05-07T20:13:37.627Z\",\n        \"__v\": 3\n    },\n    {\n        \"role\": \"tutor\",\n        \"subjects\": [],\n        \"lessons\": [],\n        \"adminstatus\": false,\n        \"activation_status\": true,\n        \"_id\": \"5eb469ab1dfcad39a471acae\",\n        \"firstname\": \"Joe\",\n        \"lastname\": \"Boy\",\n        \"email\": \"joeboy@mail.com\",\n        \"experience\": 2,\n        \"createdAt\": \"2020-05-07T20:03:55.122Z\",\n        \"updatedAt\": \"2020-05-07T20:08:00.096Z\",\n        \"__v\": 1\n    },\n    {\n        \"role\": \"tutor\",\n        \"subjects\": [],\n        \"lessons\": [],\n        \"adminstatus\": true,\n        \"activation_status\": false,\n        \"_id\": \"5eb47cb4d452e400179830b3\",\n        \"firstname\": \"Joe\",\n        \"lastname\": \"Girl\",\n        \"email\": \"joegirl@mail.com\",\n        \"experience\": 5,\n        \"createdAt\": \"2020-05-07T21:25:08.642Z\",\n        \"updatedAt\": \"2020-05-13T08:30:57.437Z\",\n        \"__v\": 0\n    },\n    {\n        \"role\": \"tutor\",\n        \"subjects\": [\n            \"5eb458071dfcad39a471aca7\"\n        ],\n        \"lessons\": [],\n        \"adminstatus\": false,\n        \"activation_status\": false,\n        \"_id\": \"5eba739ad6528d6688fc56d6\",\n        \"firstname\": \"Bassey\",\n        \"lastname\": \"Janet\",\n        \"email\": \"bassey@mail.com\",\n        \"experience\": 2,\n        \"createdAt\": \"2020-05-12T09:59:54.948Z\",\n        \"updatedAt\": \"2020-05-13T08:31:59.767Z\",\n        \"__v\": 1\n    },\n    {\n        \"role\": \"tutor\",\n        \"subjects\": [\n            \"5eb458071dfcad39a471aca7\"\n        ],\n        \"lessons\": [],\n        \"adminstatus\": false,\n        \"activation_status\": false,\n        \"_id\": \"5eba756ffc1721877c79f2ba\",\n        \"firstname\": \"Jackie\",\n        \"lastname\": \"Chan\",\n        \"email\": \"jackie@mail.com\",\n        \"experience\": 1,\n        \"createdAt\": \"2020-05-12T10:07:43.821Z\",\n        \"updatedAt\": \"2020-05-12T10:18:24.181Z\",\n        \"__v\": 1\n    },\n    {\n        \"role\": \"tutor\",\n        \"subjects\": [],\n        \"lessons\": [],\n        \"adminstatus\": false,\n        \"activation_status\": true,\n        \"_id\": \"5eba8a2d98de5996582462d3\",\n        \"firstname\": \"One\",\n        \"lastname\": \"Dance\",\n        \"email\": \"one@mail.com\",\n        \"experience\": 2,\n        \"createdAt\": \"2020-05-12T11:36:13.203Z\",\n        \"updatedAt\": \"2020-05-12T11:36:13.203Z\",\n        \"__v\": 0\n    },\n    {\n        \"role\": \"tutor\",\n        \"subjects\": [\n            \"5ebaf0bdad1d779b200446ff\"\n        ],\n        \"lessons\": [],\n        \"adminstatus\": false,\n        \"activation_status\": true,\n        \"_id\": \"5ebaf02fad1d779b200446fd\",\n        \"firstname\": \"John\",\n        \"lastname\": \"Doe\",\n        \"email\": \"john@mail.com\",\n        \"experience\": 2,\n        \"createdAt\": \"2020-05-12T18:51:27.735Z\",\n        \"updatedAt\": \"2020-05-12T19:22:21.848Z\",\n        \"__v\": 2\n    },\n    {\n        \"role\": \"tutor\",\n        \"subjects\": [\n            \"5ebaf0bdad1d779b200446ff\"\n        ],\n        \"lessons\": [\n            \"5ebaf2c5ad1d779b20044703\"\n        ],\n        \"adminstatus\": false,\n        \"activation_status\": false,\n        \"_id\": \"5ebaf042ad1d779b200446fe\",\n        \"firstname\": \"Jane\",\n        \"lastname\": \"Doe\",\n        \"email\": \"jane@mail.com\",\n        \"experience\": 2,\n        \"createdAt\": \"2020-05-12T18:51:46.951Z\",\n        \"updatedAt\": \"2020-05-13T08:29:14.241Z\",\n        \"__v\": 2\n    }\n]"}],"_postman_id":"10515fbe-51c8-4944-9402-c4f24330d9f3"},{"name":"GET SPECIFIC TUTOR","id":"8ea1959a-c460-4206-915e-e8698555bf47","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg5MzU4NDYyLCJleHAiOjE1ODk0MDE2NjJ9.LzIpV81AovpdErf5unGA3b1abM8M4VCygwhIYZXpx1A","type":"text"}],"url":"https://online-tutoring-system-api.herokuapp.com/api/v1/tutors/{id}","description":"<p>This is the endpoint to view a specific tutor by specifying the tutor's id.</p>\n<p>It can only be accessed by admins</p>\n","urlObject":{"protocol":"https","path":["api","v1","tutors","{id}"],"host":["online-tutoring-system-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"804f319c-b313-439c-860c-2f0a584694dd","name":"GET SPECIFIC TUTOR EXAMPLE","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg5MzU4NDYyLCJleHAiOjE1ODk0MDE2NjJ9.LzIpV81AovpdErf5unGA3b1abM8M4VCygwhIYZXpx1A","type":"text"}],"url":"https://online-tutoring-system-api.herokuapp.com/api/v1/tutors/5eba739ad6528d6688fc56d6"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"317"},{"key":"Etag","value":"W/\"13d-MFojD5vvZ+xebrgwOHOhQlPJB3c\""},{"key":"Date","value":"Wed, 13 May 2020 08:42:31 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"role\": \"tutor\",\n        \"subjects\": [\n            \"5eb458071dfcad39a471aca7\"\n        ],\n        \"lessons\": [],\n        \"adminstatus\": false,\n        \"activation_status\": false,\n        \"_id\": \"5eba739ad6528d6688fc56d6\",\n        \"firstname\": \"Bassey\",\n        \"lastname\": \"Janet\",\n        \"email\": \"bassey@mail.com\",\n        \"experience\": 2,\n        \"createdAt\": \"2020-05-12T09:59:54.948Z\",\n        \"updatedAt\": \"2020-05-13T08:31:59.767Z\",\n        \"__v\": 1\n    }\n]"}],"_postman_id":"8ea1959a-c460-4206-915e-e8698555bf47"},{"name":"SEARCH FOR TUTORS","id":"1bd26e34-3b59-4776-b12e-8e9dbbf11158","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg5MzU4NDYyLCJleHAiOjE1ODk0MDE2NjJ9.LzIpV81AovpdErf5unGA3b1abM8M4VCygwhIYZXpx1A","type":"text"}],"url":"https://online-tutoring-system-api.herokuapp.com/api/v1/tutors?search={firstname}","description":"<p>This is the endpoint to search for tutor by their first name. The list is sorted alphabetically in ascending order by default.</p>\n<p>It can be accessed by all users.</p>\n","urlObject":{"protocol":"https","path":["api","v1","tutors"],"host":["online-tutoring-system-api","herokuapp","com"],"query":[{"key":"search","value":"{firstname}"}],"variable":[]}},"response":[{"id":"ec52c28a-7176-46d0-93c0-606cc30e39f5","name":"SEARCH FOR TUTORS EXAMPLE","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg5MzU4NDYyLCJleHAiOjE1ODk0MDE2NjJ9.LzIpV81AovpdErf5unGA3b1abM8M4VCygwhIYZXpx1A","type":"text"}],"url":{"raw":"https://online-tutoring-system-api.herokuapp.com/api/v1/tutors?search=Joe","protocol":"https","host":["online-tutoring-system-api","herokuapp","com"],"path":["api","v1","tutors"],"query":[{"key":"search","value":"Joe"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"571"},{"key":"Etag","value":"W/\"23b-F52/mHTTph7Zza3Qa9JaN80cgOk\""},{"key":"Date","value":"Wed, 13 May 2020 08:40:09 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"role\": \"tutor\",\n        \"subjects\": [],\n        \"lessons\": [],\n        \"adminstatus\": false,\n        \"activation_status\": true,\n        \"_id\": \"5eb469ab1dfcad39a471acae\",\n        \"firstname\": \"Joe\",\n        \"lastname\": \"Boy\",\n        \"email\": \"joeboy@mail.com\",\n        \"experience\": 2,\n        \"createdAt\": \"2020-05-07T20:03:55.122Z\",\n        \"updatedAt\": \"2020-05-07T20:08:00.096Z\",\n        \"__v\": 1\n    },\n    {\n        \"role\": \"tutor\",\n        \"subjects\": [],\n        \"lessons\": [],\n        \"adminstatus\": true,\n        \"activation_status\": false,\n        \"_id\": \"5eb47cb4d452e400179830b3\",\n        \"firstname\": \"Joe\",\n        \"lastname\": \"Girl\",\n        \"email\": \"joegirl@mail.com\",\n        \"experience\": 5,\n        \"createdAt\": \"2020-05-07T21:25:08.642Z\",\n        \"updatedAt\": \"2020-05-13T08:30:57.437Z\",\n        \"__v\": 0\n    }\n]"}],"_postman_id":"1bd26e34-3b59-4776-b12e-8e9dbbf11158"},{"name":"DEACTIVATE TUTOR","id":"3c444ba9-98e7-4b08-8b38-6935662b4035","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg5MzU4NDYyLCJleHAiOjE1ODk0MDE2NjJ9.LzIpV81AovpdErf5unGA3b1abM8M4VCygwhIYZXpx1A","type":"text"}],"url":"https://online-tutoring-system-api.herokuapp.com/api/v1/tutors/{id}","description":"<p>This is the endpoint to deactivate a tutor by specifying the tutor's ID. The tutor's lessons are deleted.</p>\n<p>It can only be accessed by admins.</p>\n","urlObject":{"protocol":"https","path":["api","v1","tutors","{id}"],"host":["online-tutoring-system-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"9cdb1802-10f1-4a85-a0da-17999d41d5c9","name":"DEACTIVATE TUTOR EXAMPLE","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg5MzU4NDYyLCJleHAiOjE1ODk0MDE2NjJ9.LzIpV81AovpdErf5unGA3b1abM8M4VCygwhIYZXpx1A","type":"text"}],"url":"https://online-tutoring-system-api.herokuapp.com/api/v1/tutors/5eba739ad6528d6688fc56d6"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"30"},{"key":"Etag","value":"W/\"1e-LhNcKyL8YMkSlDudlu3OC7UkLIk\""},{"key":"Date","value":"Wed, 13 May 2020 08:31:59 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"Tutor deactivated successfully"}],"_postman_id":"3c444ba9-98e7-4b08-8b38-6935662b4035"},{"name":"REGISTER TO TEACH A SUBJECT","id":"7d403606-2ee7-49e1-953a-719ba4037bdb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg4ODc0NjUyLCJleHAiOjE1ODg5MTc4NTJ9.Wloy8dBmp9W-PEWvuGG3Z7XfmZsOltM3XP1vwwMr2tU","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"abraham@mail.com","type":"text"}]},"url":"https://online-tutoring-system-api.herokuapp.com/api/v1/categories/{id}/subjects/{id}/tutors","description":"<p>This is the endpoint a tutor uses to register to teach a subject by specifying the subject's ID and the ID of the category the subject is in. The tutor also supplies his/her email for identification and verification</p>\n<p>It can only be accessed by tutors.</p>\n","urlObject":{"protocol":"https","path":["api","v1","categories","{id}","subjects","{id}","tutors"],"host":["online-tutoring-system-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"a50a6232-d6e4-4de9-8661-253a773a1574","name":"REGISTER TO TEACH A SUBJECT EXAMPLE","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg4ODc0NjUyLCJleHAiOjE1ODg5MTc4NTJ9.Wloy8dBmp9W-PEWvuGG3Z7XfmZsOltM3XP1vwwMr2tU","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"abraham@mail.com","type":"text"}]},"url":"http://localhost:5000/api/v1/categories/5eb456bd1dfcad39a471aca6/subjects/5eb458071dfcad39a471aca7/tutors"},"status":"Created","code":201,"_postman_previewlanguage":"html","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"29"},{"key":"ETag","value":"W/\"1d-rlP0o28DQ2kvY2jeZy2hmp4CiiI\""},{"key":"Date","value":"Thu, 07 May 2020 20:13:38 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"Tutor registered successfully"}],"_postman_id":"7d403606-2ee7-49e1-953a-719ba4037bdb"},{"name":"GET TUTOR SUBJECTS","id":"6fb37e29-b027-431a-9507-381d28f9becc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg4ODc0NjUyLCJleHAiOjE1ODg5MTc4NTJ9.Wloy8dBmp9W-PEWvuGG3Z7XfmZsOltM3XP1vwwMr2tU","type":"text"}],"url":"https://online-tutoring-system-api.herokuapp.com/api/v1/tutors/{id}/subjects","description":"<p>This is the endpoint a tutor uses to view all the subjects he/she has registered to teach.</p>\n<p>It can only be accessed by tutors.</p>\n","urlObject":{"protocol":"https","path":["api","v1","tutors","{id}","subjects"],"host":["online-tutoring-system-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"b56b8a5a-5e94-480c-8149-0488b18ab79a","name":"GET TUTOR SUBJECTS EXAMPLE","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg4ODc0NjUyLCJleHAiOjE1ODg5MTc4NTJ9.Wloy8dBmp9W-PEWvuGG3Z7XfmZsOltM3XP1vwwMr2tU","type":"text"}],"url":"http://localhost:5000/api/v1/tutors/5eb44d891dfcad39a471aca1/subjects"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"455"},{"key":"ETag","value":"W/\"1c7-wjUvesVDnoJZHerF4phCBe5HC/o\""},{"key":"Date","value":"Thu, 07 May 2020 20:16:51 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"role\": \"tutor\",\n    \"subjects\": [\n        {\n            \"_id\": \"5eb458071dfcad39a471aca7\",\n            \"name\": \"English\",\n            \"category\": \"5eb456bd1dfcad39a471aca6\"\n        }\n    ],\n    \"lessons\": [\n        \"5eb4679d1dfcad39a471acad\"\n    ],\n    \"adminstatus\": true,\n    \"_id\": \"5eb44d891dfcad39a471aca1\",\n    \"firstname\": \"Abraham\",\n    \"lastname\": \"Lincoln\",\n    \"email\": \"abraham@mail.com\",\n    \"password\": \"$2a$12$tgDqkB45hHEQWmjn1xCEa.ZE0yIREJtJXLgAAAIvqhazuGGHkSfoq\",\n    \"experience\": 4,\n    \"createdAt\": \"2020-05-07T18:03:53.177Z\",\n    \"updatedAt\": \"2020-05-07T20:13:37.627Z\",\n    \"__v\": 3\n}"}],"_postman_id":"6fb37e29-b027-431a-9507-381d28f9becc"}],"id":"a51d0d41-c1b8-44b3-8b91-a7666c07309e","description":"<p>This contains the endpoints that perform an action on a tutor in the system</p>\n","event":[{"listen":"prerequest","script":{"id":"ad454027-9955-4063-bc49-22ce8e0f2ad7","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"025e5847-6553-4c93-b72a-0155d8f370b9","type":"text/javascript","exec":[""]}}],"_postman_id":"a51d0d41-c1b8-44b3-8b91-a7666c07309e"},{"name":"Students","item":[{"name":"STUDENT SIGNUP","id":"f459000b-5d40-4a06-b1cc-dbb1e0eb7c34","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"firstname","value":"Anthony","type":"text"},{"key":"lastname","value":"Joshua","type":"text"},{"key":"email","value":"anthony@mail.com","type":"text"},{"key":"password","value":"anthony","type":"text"}]},"url":"https://online-tutoring-system-api.herokuapp.com/api/v1/students/signup","description":"<p>This is the endpoint for student signup. \nDetails needed are: firstname, lastname, email, password</p>\n","urlObject":{"protocol":"https","path":["api","v1","students","signup"],"host":["online-tutoring-system-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"57ac9f47-7a2b-4972-b4f4-0db4bdb54b8d","name":"STUDENT SIGNUP EXAMPLE","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"firstname","value":"Anthony","type":"text"},{"key":"lastname","value":"Joshua","type":"text"},{"key":"email","value":"anthony@mail.com","type":"text"},{"key":"password","value":"anthony","type":"text"}]},"url":"http://localhost:5000/api/v1/students/signup"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"65"},{"key":"ETag","value":"W/\"41-SPjONx5bItpAm5ncEU+wCFI+r20\""},{"key":"Date","value":"Thu, 07 May 2020 18:28:32 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"Welcome to the online tutoring system\"\n}"}],"_postman_id":"f459000b-5d40-4a06-b1cc-dbb1e0eb7c34"},{"name":"STUDENT LOGIN","id":"b6e94893-2fff-4fd6-a29a-20d8f2f664c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"anthony@mail.com","type":"text"},{"key":"password","value":"anthony","type":"text"}]},"url":"https://online-tutoring-system-api.herokuapp.com/api/v1/students/login","description":"<p>Tis is the endpoint for student login.\nDetails needed are: email and password.</p>\n<p>It returns a token used to authorize any further actions that the student carries out on the system.</p>\n","urlObject":{"protocol":"https","path":["api","v1","students","login"],"host":["online-tutoring-system-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"05c7622a-d051-4d2d-8112-6dc6c82eacae","name":"STUDENT LOGIN EXAMPLE","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"anthony@mail.com","type":"text"},{"key":"password","value":"anthony","type":"text"}]},"url":"http://localhost:5000/api/v1/students/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"276"},{"key":"ETag","value":"W/\"114-yNCaf92fHgvch3byUb5n7q4fDuA\""},{"key":"Date","value":"Thu, 07 May 2020 18:32:39 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"5eb453501dfcad39a471aca3\",\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFudGhvbnlAbWFpbC5jb20iLCJfaWQiOiI1ZWI0NTM1MDFkZmNhZDM5YTQ3MWFjYTMiLCJyb2xlIjoic3R1ZGVudCIsImlhdCI6MTU4ODg3NjM1OSwiZXhwIjoxNTg4OTE5NTU5fQ.cdz0Qr0Ip-PHktZqWQaB988fnkyKRrZ6Hqe3U2RisXk\"\n}"}],"_postman_id":"b6e94893-2fff-4fd6-a29a-20d8f2f664c2"}],"id":"70509343-e65f-493c-893c-fdd8c98990aa","description":"<p>This contains the endpoints that perform an action on a student in the system</p>\n","_postman_id":"70509343-e65f-493c-893c-fdd8c98990aa"},{"name":"Lessons","item":[{"name":"BOOK LESSON","id":"c75c552a-2fd4-4ea6-ace7-54dc978f0f4d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg4ODc0NjUyLCJleHAiOjE1ODg5MTc4NTJ9.Wloy8dBmp9W-PEWvuGG3Z7XfmZsOltM3XP1vwwMr2tU","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"tutor_id","value":"5eb44d891dfcad39a471aca1","type":"text"},{"key":"subject_id","value":"5eb458071dfcad39a471aca7","type":"text"},{"key":"student_id","value":"5eb453501dfcad39a471aca3","type":"text"}]},"url":"https://online-tutoring-system-api.herokuapp.com/api/v1/lessons/","description":"<p>This is the endpoint to book a lesson on a particular subject between a student and a tutor. The details that are needed to be supplied before a lesson can be booked are: the subject ID, the tutor ID, and the student ID.</p>\n<p>It can only be accessed by admins and students.</p>\n","urlObject":{"protocol":"https","path":["api","v1","lessons",""],"host":["online-tutoring-system-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"a72f4460-85b9-4daf-aa17-9855142f5315","name":"BOOK LESSON EXAMPLE","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg4ODc0NjUyLCJleHAiOjE1ODg5MTc4NTJ9.Wloy8dBmp9W-PEWvuGG3Z7XfmZsOltM3XP1vwwMr2tU","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"tutor_id","value":"5eb44d891dfcad39a471aca1","type":"text"},{"key":"subject_id","value":"5eb458071dfcad39a471aca7","type":"text"},{"key":"student_id","value":"5eb453501dfcad39a471aca3","type":"text"}]},"url":"http://localhost:5000/api/v1/lessons/"},"status":"Created","code":201,"_postman_previewlanguage":"html","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"26"},{"key":"ETag","value":"W/\"1a-f+PCxl+N5oojw2LhSsVappzxN34\""},{"key":"Date","value":"Thu, 07 May 2020 19:55:10 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"Lesson booked successfully"}],"_postman_id":"c75c552a-2fd4-4ea6-ace7-54dc978f0f4d"},{"name":"GET ALL LESSONS","id":"80d048e4-0bd7-4ede-9f9f-b217e3be5b2d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg4ODc0NjUyLCJleHAiOjE1ODg5MTc4NTJ9.Wloy8dBmp9W-PEWvuGG3Z7XfmZsOltM3XP1vwwMr2tU","type":"text"}],"url":"https://online-tutoring-system-api.herokuapp.com/api/v1/lessons/","description":"<p>This is the endpoint to view all lessons.</p>\n<p>It can only be accessed by admins.</p>\n","urlObject":{"protocol":"https","path":["api","v1","lessons",""],"host":["online-tutoring-system-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"c9cc8a64-5c6b-4145-8ac4-8d2bc51c5d41","name":"GET ALL LESSONS EXAMPLE","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg4ODc0NjUyLCJleHAiOjE1ODg5MTc4NTJ9.Wloy8dBmp9W-PEWvuGG3Z7XfmZsOltM3XP1vwwMr2tU","type":"text"}],"url":"http://localhost:5000/api/v1/lessons/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"479"},{"key":"ETag","value":"W/\"1df-FKIEB91qidki7g5b/3GyadYVGOw\""},{"key":"Date","value":"Thu, 07 May 2020 19:57:02 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"5eb4679a1dfcad39a471acaa\",\n        \"tutor_id\": \"5eb44d891dfcad39a471aca1\",\n        \"student_id\": \"5eb453501dfcad39a471aca3\",\n        \"subject_id\": \"5eb458071dfcad39a471aca7\",\n        \"createdAt\": \"2020-05-07T19:55:06.040Z\",\n        \"updatedAt\": \"2020-05-07T19:55:06.040Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"5eb4679d1dfcad39a471acad\",\n        \"tutor_id\": \"5eb44d891dfcad39a471aca1\",\n        \"student_id\": \"5eb453501dfcad39a471aca3\",\n        \"subject_id\": \"5eb458071dfcad39a471aca7\",\n        \"createdAt\": \"2020-05-07T19:55:09.899Z\",\n        \"updatedAt\": \"2020-05-07T19:55:09.899Z\",\n        \"__v\": 0\n    }\n]"}],"_postman_id":"80d048e4-0bd7-4ede-9f9f-b217e3be5b2d"},{"name":"GET A LESSON BY ID","id":"580d7a5a-77c9-4697-ba40-f34298a51929","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg4ODc0NjUyLCJleHAiOjE1ODg5MTc4NTJ9.Wloy8dBmp9W-PEWvuGG3Z7XfmZsOltM3XP1vwwMr2tU","type":"text"}],"url":"https://online-tutoring-system-api.herokuapp.com/api/v1/lessons/{id}","description":"<p>This is the endpoint to get a specific lesson by ID.</p>\n<p>It can only be accessed by admins.</p>\n","urlObject":{"protocol":"https","path":["api","v1","lessons","{id}"],"host":["online-tutoring-system-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"1ac5f2bf-8113-4bf6-b39e-94099f2bf10d","name":"GET A LESSON BY ID EXAMPLE","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg4ODc0NjUyLCJleHAiOjE1ODg5MTc4NTJ9.Wloy8dBmp9W-PEWvuGG3Z7XfmZsOltM3XP1vwwMr2tU","type":"text"}],"url":"http://localhost:5000/api/v1/lessons/5eb4679a1dfcad39a471acaa"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"238"},{"key":"ETag","value":"W/\"ee-ezKSlL6EOA2yd0Y/wyuRPkhVyz0\""},{"key":"Date","value":"Thu, 07 May 2020 19:59:23 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"5eb4679a1dfcad39a471acaa\",\n    \"tutor_id\": \"5eb44d891dfcad39a471aca1\",\n    \"student_id\": \"5eb453501dfcad39a471aca3\",\n    \"subject_id\": \"5eb458071dfcad39a471aca7\",\n    \"createdAt\": \"2020-05-07T19:55:06.040Z\",\n    \"updatedAt\": \"2020-05-07T19:55:06.040Z\",\n    \"__v\": 0\n}"}],"_postman_id":"580d7a5a-77c9-4697-ba40-f34298a51929"},{"name":"UPDATE LESSON","id":"f385214d-7222-4807-9943-0432c6fc2b19","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg4ODc0NjUyLCJleHAiOjE1ODg5MTc4NTJ9.Wloy8dBmp9W-PEWvuGG3Z7XfmZsOltM3XP1vwwMr2tU","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"tutor_id","value":"5eb469ab1dfcad39a471acae","type":"text"}]},"url":"https://online-tutoring-system-api.herokuapp.com/api/v1/lessons/{id}","description":"<p>This is the endpoint to update a lesson's tutor by specifying the ID of the lesson and the ID of the new tutor.\nNOTE: The new tutor must already be registered to teach the subject.</p>\n<p>It can only be accessed by admins</p>\n","urlObject":{"protocol":"https","path":["api","v1","lessons","{id}"],"host":["online-tutoring-system-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"be8764b8-7331-4e80-ad9f-ef28a2fb3637","name":"UPDATE LESSON EXAMPLE","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg4ODc0NjUyLCJleHAiOjE1ODg5MTc4NTJ9.Wloy8dBmp9W-PEWvuGG3Z7XfmZsOltM3XP1vwwMr2tU","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"tutor_id","value":"5eb469ab1dfcad39a471acae","type":"text"}]},"url":"http://localhost:5000/api/v1/lessons/5eb4679a1dfcad39a471acaa"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"27"},{"key":"ETag","value":"W/\"1b-2mv5928MQyEu6H9b015IMuELg0M\""},{"key":"Date","value":"Thu, 07 May 2020 20:05:43 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"Lesson updated successfully"}],"_postman_id":"f385214d-7222-4807-9943-0432c6fc2b19"},{"name":"DELETE LESSON","id":"24089425-f95d-43e5-ab31-9731f79c1534","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg4ODc0NjUyLCJleHAiOjE1ODg5MTc4NTJ9.Wloy8dBmp9W-PEWvuGG3Z7XfmZsOltM3XP1vwwMr2tU","type":"text"}],"url":"https://online-tutoring-system-api.herokuapp.com/api/v1/lessons/{id}","description":"<p>This is the endpoint to delete a specific lesson by specifying its ID.</p>\n<p>It can only be accessed by admins.</p>\n","urlObject":{"protocol":"https","path":["api","v1","lessons","{id}"],"host":["online-tutoring-system-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"9b8f61a5-40cb-4159-b0a1-3ccb3d30880f","name":"DELETE LESSON EXAMPLE","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg4ODc0NjUyLCJleHAiOjE1ODg5MTc4NTJ9.Wloy8dBmp9W-PEWvuGG3Z7XfmZsOltM3XP1vwwMr2tU","type":"text"}],"url":"http://localhost:5000/api/v1/lessons/5eb4679a1dfcad39a471acaa"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"X-Powered-By","value":"Express"},{"key":"ETag","value":"W/\"1b-SnjzvqfxXVPIlxRqheJMdJL6qe4\""},{"key":"Date","value":"Thu, 07 May 2020 20:08:00 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"24089425-f95d-43e5-ab31-9731f79c1534"}],"id":"7e889f9d-c865-4107-b468-7c95c24bdaf3","description":"<p>This contains the endpoints that carry out an action on lessons</p>\n","_postman_id":"7e889f9d-c865-4107-b468-7c95c24bdaf3"},{"name":"Subjects","item":[{"name":"CREATE SUBJECT","id":"fab6fea7-0166-4e26-9ab3-b7f7bc14e273","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg4ODc0NjUyLCJleHAiOjE1ODg5MTc4NTJ9.Wloy8dBmp9W-PEWvuGG3Z7XfmZsOltM3XP1vwwMr2tU","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Biology","type":"text"}]},"url":"https://online-tutoring-system-api.herokuapp.com/api/v1/categories/{id}/subjects","description":"<p>Subjects can be created under any of the categories specified by indicating the ID of the category.</p>\n<p>Only admins can create subjects.</p>\n","urlObject":{"protocol":"https","path":["api","v1","categories","{id}","subjects"],"host":["online-tutoring-system-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"9ac88d86-a19c-43b4-9547-42702ebc28e1","name":"CREATE SUBJECTS EXAMPLE","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg4ODc0NjUyLCJleHAiOjE1ODg5MTc4NTJ9.Wloy8dBmp9W-PEWvuGG3Z7XfmZsOltM3XP1vwwMr2tU","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Biology","type":"text"}]},"url":"http://localhost:5000/api/v1/categories/5eb456bd1dfcad39a471aca6/subjects"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"28"},{"key":"ETag","value":"W/\"1c-scp+yDD6xZRak/yX2tofmEhz4VM\""},{"key":"Date","value":"Thu, 07 May 2020 18:51:52 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"Subject created successfully"}],"_postman_id":"fab6fea7-0166-4e26-9ab3-b7f7bc14e273"},{"name":"UPDATE SUBJECT","id":"69905082-421d-4f04-a1e2-c964e81f0107","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg4ODc0NjUyLCJleHAiOjE1ODg5MTc4NTJ9.Wloy8dBmp9W-PEWvuGG3Z7XfmZsOltM3XP1vwwMr2tU","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Chemistry","type":"text"}]},"url":"https://online-tutoring-system-api.herokuapp.com/api/v1/categories/{id}/subjects/{Id}","description":"<p>This is an endpoint to update a subject's name by specifiying its ID as well as the ID of the category it is contained in.</p>\n<p>This can be only be accessed by admins and tutors that have registered to teach the subject.</p>\n","urlObject":{"protocol":"https","path":["api","v1","categories","{id}","subjects","{Id}"],"host":["online-tutoring-system-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"1898325b-f86a-40bd-91c5-e86618fe32f1","name":"UPDATE SUBJECT EXAMPLE","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg4ODc0NjUyLCJleHAiOjE1ODg5MTc4NTJ9.Wloy8dBmp9W-PEWvuGG3Z7XfmZsOltM3XP1vwwMr2tU","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Chemistry","type":"text"}]},"url":"http://localhost:5000/api/v1/categories/5eb456bd1dfcad39a471aca6/subjects/5eb458c71dfcad39a471aca9"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"28"},{"key":"ETag","value":"W/\"1c-MrRk/uc4bU0FroLa1sT4x7fheto\""},{"key":"Date","value":"Thu, 07 May 2020 18:58:44 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"Subject updated successfully"}],"_postman_id":"69905082-421d-4f04-a1e2-c964e81f0107"},{"name":"DELETE SUBJECT","id":"6296b639-787d-445f-ba7c-bc8bd24c0489","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg4ODc0NjUyLCJleHAiOjE1ODg5MTc4NTJ9.Wloy8dBmp9W-PEWvuGG3Z7XfmZsOltM3XP1vwwMr2tU","type":"text"}],"url":"https://online-tutoring-system-api.herokuapp.com/api/v1/categories/{id}/subjects/{id}","description":"<p>This is the endpoint to delete subjects by specifying its ID and that of its category.</p>\n<p>This can only be accessed by admins and tutors that have registered to teach the subject.</p>\n","urlObject":{"protocol":"https","path":["api","v1","categories","{id}","subjects","{id}"],"host":["online-tutoring-system-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"4b569125-52a6-4e7e-96b8-63c6e4fec674","name":"DELETE SUBJECT EXAMPLE","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg4ODc0NjUyLCJleHAiOjE1ODg5MTc4NTJ9.Wloy8dBmp9W-PEWvuGG3Z7XfmZsOltM3XP1vwwMr2tU","type":"text"}],"url":"http://localhost:5000/api/v1/categories/5eb456bd1dfcad39a471aca6/subjects/5eb458c71dfcad39a471aca9"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"X-Powered-By","value":"Express"},{"key":"ETag","value":"W/\"1e-ZCW/Md3wRgjAmMHPYUNW0mABfIY\""},{"key":"Date","value":"Thu, 07 May 2020 19:03:58 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"6296b639-787d-445f-ba7c-bc8bd24c0489"},{"name":"GET ALL SUBJECTS","id":"03fdf3f1-036c-4b88-ac67-577002afa86f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg4ODc0NjUyLCJleHAiOjE1ODg5MTc4NTJ9.Wloy8dBmp9W-PEWvuGG3Z7XfmZsOltM3XP1vwwMr2tU","type":"text"}],"url":"https://online-tutoring-system-api.herokuapp.com/api/v1/subjects","description":"<p>This is the endpoint to view all subjects classified by category.</p>\n<p>This can be accessed by all users.</p>\n","urlObject":{"protocol":"https","path":["api","v1","subjects"],"host":["online-tutoring-system-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"b1e6c34e-38de-4169-9b1c-dd479523b4fd","name":"GET ALL SUBJECTS EXAMPLE","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg4ODc0NjUyLCJleHAiOjE1ODg5MTc4NTJ9.Wloy8dBmp9W-PEWvuGG3Z7XfmZsOltM3XP1vwwMr2tU","type":"text"}],"url":"http://localhost:5000/api/v1/subjects"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"238"},{"key":"ETag","value":"W/\"ee-yBmvbLEoh+GVzf1Txdv25APyzd8\""},{"key":"Date","value":"Thu, 07 May 2020 19:34:31 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"subjects\": [\n            {\n                \"_id\": \"5eb458071dfcad39a471aca7\",\n                \"name\": \"English\",\n                \"category\": \"5eb456bd1dfcad39a471aca6\"\n            }\n        ],\n        \"_id\": \"5eb456bd1dfcad39a471aca6\",\n        \"name\": \"JSS\",\n        \"createdAt\": \"2020-05-07T18:43:09.179Z\",\n        \"updatedAt\": \"2020-05-07T19:03:57.965Z\",\n        \"__v\": 2\n    }\n]"}],"_postman_id":"03fdf3f1-036c-4b88-ac67-577002afa86f"},{"name":"GET SPECIFIC SUBJECT","id":"1604ff12-5a85-4e8b-a9fc-a2cc2d720766","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg4ODc0NjUyLCJleHAiOjE1ODg5MTc4NTJ9.Wloy8dBmp9W-PEWvuGG3Z7XfmZsOltM3XP1vwwMr2tU","type":"text"}],"url":"https://online-tutoring-system-api.herokuapp.com/api/v1/categories/{id}/subjects/{id}","description":"<p>This is the endpoint to view a specific subject by specifying its ID and the ID of its category.</p>\n<p>It can be accessed by all users.</p>\n","urlObject":{"protocol":"https","path":["api","v1","categories","{id}","subjects","{id}"],"host":["online-tutoring-system-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"fa0b2f2d-85a2-49cb-ac50-1fcb32891def","name":"GET SPECIFIC SUBJECT EXAMPLE","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg4ODc0NjUyLCJleHAiOjE1ODg5MTc4NTJ9.Wloy8dBmp9W-PEWvuGG3Z7XfmZsOltM3XP1vwwMr2tU","type":"text"}],"url":"http://localhost:5000/api/v1/categories/5eb456bd1dfcad39a471aca6/subjects/5eb458071dfcad39a471aca7"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"187"},{"key":"ETag","value":"W/\"bb-VVK0CmQoMr1ZJVFk2Sksw1I2tm4\""},{"key":"Date","value":"Thu, 07 May 2020 19:37:54 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"tutors\": [],\n    \"_id\": \"5eb458071dfcad39a471aca7\",\n    \"name\": \"English\",\n    \"category\": \"5eb456bd1dfcad39a471aca6\",\n    \"createdAt\": \"2020-05-07T18:48:39.770Z\",\n    \"updatedAt\": \"2020-05-07T18:48:39.770Z\",\n    \"__v\": 0\n}"}],"_postman_id":"1604ff12-5a85-4e8b-a9fc-a2cc2d720766"},{"name":"SEARCH FOR SUBJECTS","id":"952ed0f6-715f-4671-8934-f40995dbdf0f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg4ODc0NjUyLCJleHAiOjE1ODg5MTc4NTJ9.Wloy8dBmp9W-PEWvuGG3Z7XfmZsOltM3XP1vwwMr2tU","type":"text"}],"url":"https://online-tutoring-system-api.herokuapp.com/api/v1/subjects?search={name}","description":"<p>This is the endpoint to search for subjects by name. These names are sorted alphabetically in ascending order by default.</p>\n<p>It can be accessed by all users.</p>\n","urlObject":{"protocol":"https","path":["api","v1","subjects"],"host":["online-tutoring-system-api","herokuapp","com"],"query":[{"key":"search","value":"{name}"}],"variable":[]}},"response":[{"id":"87448a5b-0468-4860-b280-fb867d27622b","name":"SEARCH FOR SUBJECTS EXAMPLE","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg4ODc0NjUyLCJleHAiOjE1ODg5MTc4NTJ9.Wloy8dBmp9W-PEWvuGG3Z7XfmZsOltM3XP1vwwMr2tU","type":"text"}],"url":{"raw":"http://localhost:5000/api/v1/subjects?search=English","protocol":"http","host":["localhost"],"port":"5000","path":["api","v1","subjects"],"query":[{"key":"search","value":"English"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"189"},{"key":"ETag","value":"W/\"bd-DVmCH7fm31EZ0l8ywi/vCqBpDpc\""},{"key":"Date","value":"Thu, 07 May 2020 19:41:47 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"tutors\": [],\n        \"_id\": \"5eb458071dfcad39a471aca7\",\n        \"name\": \"English\",\n        \"category\": \"5eb456bd1dfcad39a471aca6\",\n        \"createdAt\": \"2020-05-07T18:48:39.770Z\",\n        \"updatedAt\": \"2020-05-07T18:48:39.770Z\",\n        \"__v\": 0\n    }\n]"}],"_postman_id":"952ed0f6-715f-4671-8934-f40995dbdf0f"},{"name":"GET ALL SUBJECT TUTORS","id":"9040d7a6-53e0-4e1e-ac40-f67718ffb6ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFudGhvbnlAbWFpbC5jb20iLCJfaWQiOiI1ZWI0NTM1MDFkZmNhZDM5YTQ3MWFjYTMiLCJyb2xlIjoic3R1ZGVudCIsImlhdCI6MTU4ODg3NjM1OSwiZXhwIjoxNTg4OTE5NTU5fQ.cdz0Qr0Ip-PHktZqWQaB988fnkyKRrZ6Hqe3U2RisXk","type":"text"}],"url":"https://online-tutoring-system-api.herokuapp.com/api/v1/categories/{id}/subjects/{id}/tutors","description":"<p>This is the endpoint to view all the tutors taking a subject.</p>\n<p>It can only be accessed by students</p>\n","urlObject":{"protocol":"https","path":["api","v1","categories","{id}","subjects","{id}","tutors"],"host":["online-tutoring-system-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"4ee8347a-74e4-4af9-841b-4c487bfe2ea8","name":"GET ALL SUBJECT TUTORS EXAMPLE","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFudGhvbnlAbWFpbC5jb20iLCJfaWQiOiI1ZWI0NTM1MDFkZmNhZDM5YTQ3MWFjYTMiLCJyb2xlIjoic3R1ZGVudCIsImlhdCI6MTU4ODg3NjM1OSwiZXhwIjoxNTg4OTE5NTU5fQ.cdz0Qr0Ip-PHktZqWQaB988fnkyKRrZ6Hqe3U2RisXk","type":"text"}],"url":"http://localhost:5000/api/v1/categories/5eb456bd1dfcad39a471aca6/subjects/5eb458071dfcad39a471aca7/tutors"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"248"},{"key":"ETag","value":"W/\"f8-11ZJ+fMGC0NDFsFThJn5/FV63t8\""},{"key":"Date","value":"Thu, 07 May 2020 20:27:25 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"tutors\": [\n        {\n            \"_id\": \"5eb44d891dfcad39a471aca1\",\n            \"email\": \"abraham@mail.com\"\n        }\n    ],\n    \"_id\": \"5eb458071dfcad39a471aca7\",\n    \"name\": \"English\",\n    \"category\": \"5eb456bd1dfcad39a471aca6\",\n    \"createdAt\": \"2020-05-07T18:48:39.770Z\",\n    \"updatedAt\": \"2020-05-07T20:13:37.860Z\",\n    \"__v\": 1\n}"}],"_postman_id":"9040d7a6-53e0-4e1e-ac40-f67718ffb6ce"}],"id":"ab6b3d04-3edc-451f-8973-0345a23456a0","description":"<p>This contains the endpoints that perform an action on a subject in the system</p>\n","_postman_id":"ab6b3d04-3edc-451f-8973-0345a23456a0"},{"name":"Categories","item":[{"name":"CREATE CATEGORIES","id":"138f2fe5-a953-47a9-82ba-32273f50dc61","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg4ODc0NjUyLCJleHAiOjE1ODg5MTc4NTJ9.Wloy8dBmp9W-PEWvuGG3Z7XfmZsOltM3XP1vwwMr2tU","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"JSS","type":"text"}]},"url":"https://online-tutoring-system-api.herokuapp.com/api/v1/categories/","description":"<p>This endpoint is for creating categories.\nCategory name can only be either 'Primary', 'JSS', or 'SSS'.</p>\n<p>It can only be accessed by admins.</p>\n","urlObject":{"protocol":"https","path":["api","v1","categories",""],"host":["online-tutoring-system-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"f0e182a6-e773-474b-aafe-edbb17e61532","name":"CREATE CATEGORIES EXAMPLE","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg4ODc0NjUyLCJleHAiOjE1ODg5MTc4NTJ9.Wloy8dBmp9W-PEWvuGG3Z7XfmZsOltM3XP1vwwMr2tU","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"JSS","type":"text"}]},"url":"http://localhost:5000/api/v1/categories/"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"29"},{"key":"ETag","value":"W/\"1d-5EqPHn6F2op88Ps0kEuLi0CMAa4\""},{"key":"Date","value":"Thu, 07 May 2020 18:43:09 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"Category created successfully"}],"_postman_id":"138f2fe5-a953-47a9-82ba-32273f50dc61"},{"name":"UPDATE CATEGORY","id":"366eed13-e7d8-489a-9f3f-df96b931a8bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg4ODc0NjUyLCJleHAiOjE1ODg5MTc4NTJ9.Wloy8dBmp9W-PEWvuGG3Z7XfmZsOltM3XP1vwwMr2tU","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"SSS","type":"text"}]},"url":"https://online-tutoring-system-api.herokuapp.com/api/v1/categories/{id}","description":"<p>This is the endpoint to update a category's name by specifying its ID.</p>\n<p>Only admins have this access.</p>\n","urlObject":{"protocol":"https","path":["api","v1","categories","{id}"],"host":["online-tutoring-system-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"57dee9dd-2bc1-43b9-a3ec-3fcca4c071ae","name":"UPDATE CATEGORY EXAMPLE","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg4ODc0NjUyLCJleHAiOjE1ODg5MTc4NTJ9.Wloy8dBmp9W-PEWvuGG3Z7XfmZsOltM3XP1vwwMr2tU","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"SSS","type":"text"}]},"url":"http://localhost:5000/api/v1/categories/5eb456721dfcad39a471aca5"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"29"},{"key":"ETag","value":"W/\"1d-CF7L1IzyaSctHfpncb7KjsJmExI\""},{"key":"Date","value":"Thu, 07 May 2020 19:13:20 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"Category updated successfully"}],"_postman_id":"366eed13-e7d8-489a-9f3f-df96b931a8bf"},{"name":"DELETE CATEGORY","id":"205f7d9a-9ba3-4ec0-90f3-f2e9061a2096","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg4ODc0NjUyLCJleHAiOjE1ODg5MTc4NTJ9.Wloy8dBmp9W-PEWvuGG3Z7XfmZsOltM3XP1vwwMr2tU","type":"text"}],"url":"https://online-tutoring-system-api.herokuapp.com/api/v1/categories/{id}","description":"<p>This is the endpoint to delete a category by specifying its ID.</p>\n<p>Only admins have this access.</p>\n","urlObject":{"protocol":"https","path":["api","v1","categories","{id}"],"host":["online-tutoring-system-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"9b6429c4-d47d-4777-9a0c-47c67a907ab9","name":"DELETE CATEGORY EXAMPLE","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg4ODc0NjUyLCJleHAiOjE1ODg5MTc4NTJ9.Wloy8dBmp9W-PEWvuGG3Z7XfmZsOltM3XP1vwwMr2tU","type":"text"}],"url":"http://localhost:5000/api/v1/categories/5eb456721dfcad39a471aca5"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"147"},{"key":"ETag","value":"W/\"93-Sso2Koo911EQInQMwhi6gsIfh1k\""},{"key":"Date","value":"Thu, 07 May 2020 19:17:00 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"subjects\": [],\n    \"_id\": \"5eb456721dfcad39a471aca5\",\n    \"name\": \"SSS\",\n    \"createdAt\": \"2020-05-07T18:41:54.270Z\",\n    \"updatedAt\": \"2020-05-07T19:13:19.861Z\",\n    \"__v\": 0\n}"}],"_postman_id":"205f7d9a-9ba3-4ec0-90f3-f2e9061a2096"},{"name":"GET ALL CATEGORIES","id":"fdcfdc18-9f63-48d9-9026-f89fe720f77a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg4ODc0NjUyLCJleHAiOjE1ODg5MTc4NTJ9.Wloy8dBmp9W-PEWvuGG3Z7XfmZsOltM3XP1vwwMr2tU","type":"text"}],"url":"https://online-tutoring-system-api.herokuapp.com/api/v1/categories/","description":"<p>This endpoint is to view all the categories.</p>\n<p>It can be accessed by all users.</p>\n","urlObject":{"protocol":"https","path":["api","v1","categories",""],"host":["online-tutoring-system-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"428ba678-453c-4444-bec6-a1cba19db884","name":"GET ALL CATEGORIES EXAMPLE","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFicmFoYW1AbWFpbC5jb20iLCJfaWQiOiI1ZWI0NGQ4OTFkZmNhZDM5YTQ3MWFjYTEiLCJyb2xlIjoidHV0b3IiLCJhZG1pbnN0YXR1cyI6dHJ1ZSwiaWF0IjoxNTg4ODc0NjUyLCJleHAiOjE1ODg5MTc4NTJ9.Wloy8dBmp9W-PEWvuGG3Z7XfmZsOltM3XP1vwwMr2tU","type":"text"}],"url":"http://localhost:5000/api/v1/categories/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"175"},{"key":"ETag","value":"W/\"af-Zf7wG/USGbnXgx1mpcarpIC+aeU\""},{"key":"Date","value":"Thu, 07 May 2020 19:44:31 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"subjects\": [\n            \"5eb458071dfcad39a471aca7\"\n        ],\n        \"_id\": \"5eb456bd1dfcad39a471aca6\",\n        \"name\": \"JSS\",\n        \"createdAt\": \"2020-05-07T18:43:09.179Z\",\n        \"updatedAt\": \"2020-05-07T19:03:57.965Z\",\n        \"__v\": 2\n    }\n]"}],"_postman_id":"fdcfdc18-9f63-48d9-9026-f89fe720f77a"}],"id":"431dac21-e67f-4729-aa21-0ca293b140b2","description":"<p>This contains the endpoints that perform an action on a category in the system</p>\n","_postman_id":"431dac21-e67f-4729-aa21-0ca293b140b2"}],"event":[{"listen":"prerequest","script":{"id":"db505d9b-edaa-40be-bfe4-c538c8e58b8a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a9112b9d-2a1b-4a4e-bddf-f3c22a2bfc6e","type":"text/javascript","exec":[""]}}]}