{"info":{"_postman_id":"31e3e849-1ef8-41f4-98e3-b533e44d1116","name":"BookingSystemAPI","description":"<html><head></head><body><p>This collection represents the API endpoints for the Course Booking System, providing comprehensive functionality for user management, course administration, news updates, and enrollment processes. It includes authentication, CRUD operations, and search capabilities to support a seamless course booking experience.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"43520839","collectionId":"31e3e849-1ef8-41f4-98e3-b533e44d1116","publishedId":"2sB2qajMaD","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-05-23T10:23:33.000Z"},"item":[{"name":"User","item":[{"name":"Register User","id":"6b6b15d5-8835-44b4-bd09-d3d11e16c95c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"firstName\": \"Marley\",\r\n  \"lastName\": \"Catapia\",\r\n  \"email\": \"marley@mailz.com\",\r\n  \"password\": \"user1234\",\r\n  \"isAdmin\": false,\r\n  \"mobileNo\": \"09123456789\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://course-booking-api-b30e.onrender.com/users/register/","urlObject":{"protocol":"https","path":["users","register",""],"host":["course-booking-api-b30e","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"6b6b15d5-8835-44b4-bd09-d3d11e16c95c"},{"name":"User Authentication","id":"91816831-6582-47ae-bbcb-3559af03eabf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"harley@mail.com\",\r\n    \"password\": \"user1234\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://course-booking-api-b30e.onrender.com/users/login","urlObject":{"protocol":"https","path":["users","login"],"host":["course-booking-api-b30e","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"91816831-6582-47ae-bbcb-3559af03eabf"},{"name":"Retrieve User Details","id":"f90a156e-9b36-4afc-853a-195e285aedc2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"67eca87b5bbe2c4cb7208b1c\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://course-booking-api-b30e.onrender.com/users/details","urlObject":{"protocol":"https","path":["users","details"],"host":["course-booking-api-b30e","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"f90a156e-9b36-4afc-853a-195e285aedc2"},{"name":"Reset Password","id":"c959971e-a926-47c3-be9a-37ea65bbd17e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"newPassword\": \"marz1234\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://course-booking-api-b30e.onrender.com/users/reset-password","urlObject":{"protocol":"https","path":["users","reset-password"],"host":["course-booking-api-b30e","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c959971e-a926-47c3-be9a-37ea65bbd17e"},{"name":"Set Admin","id":"a4e1247e-84dd-475e-acfa-438483694a65","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"6830264c08fb4d704901180c\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://course-booking-api-b30e.onrender.com/users/set-admin/","urlObject":{"protocol":"https","path":["users","set-admin",""],"host":["course-booking-api-b30e","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a4e1247e-84dd-475e-acfa-438483694a65"},{"name":"Update Profile","id":"9b62e1c7-a1aa-4dd5-b928-67d6e9954d2a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstName\": \"Marley Gabriel\",\r\n    \"lastName\": \"Catapia\",\r\n    \"mobileNo\": \"09987654321\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://course-booking-api-b30e.onrender.com/users/profile","urlObject":{"protocol":"https","path":["users","profile"],"host":["course-booking-api-b30e","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"9b62e1c7-a1aa-4dd5-b928-67d6e9954d2a"}],"id":"53af48d6-94d7-4894-9fad-e9deb3366a62","description":"<p>Contains endpoints for user registration, authentication, profile management, and administration settings. Supports actions like password reset, profile updates, and admin privileges assignment.</p>\n","_postman_id":"53af48d6-94d7-4894-9fad-e9deb3366a62"},{"name":"Course","item":[{"name":"Add Course","id":"6dffe5b0-0135-4b6b-88cb-7f2dd231159d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"JS101\",\r\n    \"description\": \"Learns the basic of JS\",\r\n    \"price\": 12000\r\n}","options":{"raw":{"language":"json"}}},"url":"https://course-booking-api-b30e.onrender.com/courses/","urlObject":{"protocol":"https","path":["courses",""],"host":["course-booking-api-b30e","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"6dffe5b0-0135-4b6b-88cb-7f2dd231159d"},{"name":"Retrieve Specific Course","id":"fdf47672-0400-4e39-b4a3-de35654b5405","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://course-booking-api-b30e.onrender.com/courses/specific/68302a5ca65ee403272825c0","urlObject":{"protocol":"https","path":["courses","specific","68302a5ca65ee403272825c0"],"host":["course-booking-api-b30e","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"fdf47672-0400-4e39-b4a3-de35654b5405"},{"name":"Get All Courses","id":"19ad02a9-4e11-4dc9-a898-e75ab558e63d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://course-booking-api-b30e.onrender.com/courses/","urlObject":{"protocol":"https","path":["courses",""],"host":["course-booking-api-b30e","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"19ad02a9-4e11-4dc9-a898-e75ab558e63d"},{"name":"Search Course","id":"8c291c58-2a15-49ac-a801-882be46f1977","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"css\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://course-booking-api-b30e.onrender.com/courses/search","urlObject":{"protocol":"https","path":["courses","search"],"host":["course-booking-api-b30e","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8c291c58-2a15-49ac-a801-882be46f1977"},{"name":"Update Course","id":"f3a08247-fe3a-4c30-bdcf-5d28a86b8793","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"JS-101\",\r\n    \"description\": \"Learns the basic of JS\",\r\n    \"price\": 12000\r\n}","options":{"raw":{"language":"json"}}},"url":"https://course-booking-api-b30e.onrender.com/courses/68302a5ca65ee403272825c0/","urlObject":{"protocol":"https","path":["courses","68302a5ca65ee403272825c0",""],"host":["course-booking-api-b30e","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"f3a08247-fe3a-4c30-bdcf-5d28a86b8793"},{"name":"Archive Course","id":"da6d96d8-84d1-4df3-96cf-ad028cd56d6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://course-booking-api-b30e.onrender.com/courses/68302a5ca65ee403272825c0/archive","urlObject":{"protocol":"https","path":["courses","68302a5ca65ee403272825c0","archive"],"host":["course-booking-api-b30e","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"da6d96d8-84d1-4df3-96cf-ad028cd56d6d"},{"name":"Activate Course","id":"0afcf26a-2b5e-4c77-9453-b8e91989921f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://course-booking-api-b30e.onrender.com/courses/68302a5ca65ee403272825c0/activate","urlObject":{"protocol":"https","path":["courses","68302a5ca65ee403272825c0","activate"],"host":["course-booking-api-b30e","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"0afcf26a-2b5e-4c77-9453-b8e91989921f"},{"name":"Search Course by Price","id":"75390979-ff17-43fb-87e3-fc7121b5c99b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"minPrice\": 1000,\r\n    \"maxPrice\": 20000\r\n}","options":{"raw":{"language":"json"}}},"url":"https://course-booking-api-b30e.onrender.com/courses/search","urlObject":{"protocol":"https","path":["courses","search"],"host":["course-booking-api-b30e","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"75390979-ff17-43fb-87e3-fc7121b5c99b"}],"id":"79a1aff2-07e9-4b5d-a17f-f2e37ac6d1db","description":"<p>Includes endpoints for managing courses, such as adding, retrieving, updating, archiving, and activating courses. Also supports searching courses by price and retrieving specific or all courses.</p>\n","_postman_id":"79a1aff2-07e9-4b5d-a17f-f2e37ac6d1db"},{"name":"News","item":[{"name":"Add News","id":"6ad518f4-9677-4f2a-b13b-661d7e251830","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Summer Promo - Get a free class at 50% Off\",\r\n    \"description\": \"Enroll to two of our courses and get your next class free worth 15000 PHP and below.\",\r\n    \"isActive\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"https://course-booking-api-b30e.onrender.com/news/","urlObject":{"protocol":"https","path":["news",""],"host":["course-booking-api-b30e","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"6ad518f4-9677-4f2a-b13b-661d7e251830"},{"name":"Get All News - Admin","id":"0e9256c0-d959-4bd1-834c-eb3b8880f4a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://course-booking-api-b30e.onrender.com/news/","urlObject":{"protocol":"https","path":["news",""],"host":["course-booking-api-b30e","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"0e9256c0-d959-4bd1-834c-eb3b8880f4a8"},{"name":"Get All Active News","id":"f7d566cf-24e5-48d8-a7e3-e67275e7bf5b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://course-booking-api-b30e.onrender.com/news/all","urlObject":{"protocol":"https","path":["news","all"],"host":["course-booking-api-b30e","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"f7d566cf-24e5-48d8-a7e3-e67275e7bf5b"},{"name":"Get Specific News","id":"7a5e9ba6-720e-420e-b67c-2e4310fb0eca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://course-booking-api-b30e.onrender.com/news/specific/68089030f1536a7f8d7dd5bd","urlObject":{"protocol":"https","path":["news","specific","68089030f1536a7f8d7dd5bd"],"host":["course-booking-api-b30e","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"7a5e9ba6-720e-420e-b67c-2e4310fb0eca"},{"name":"Update News","id":"04878ed5-c9a8-415a-aa9b-eadb541234c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Enrollment Bundle - Get a free class\",\r\n    \"description\": \"Enroll to two of our courses and get your next class free worth 30000 PHP and below!\",\r\n    \"isActive\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"https://course-booking-api-b30e.onrender.com/news/68089030f1536a7f8d7dd5bd","urlObject":{"protocol":"https","path":["news","68089030f1536a7f8d7dd5bd"],"host":["course-booking-api-b30e","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"04878ed5-c9a8-415a-aa9b-eadb541234c0"},{"name":"Archive News","id":"926f3d15-0eba-4df9-a758-aa72f924f1c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://course-booking-api-b30e.onrender.com/news/68089030f1536a7f8d7dd5bd/archive","urlObject":{"protocol":"https","path":["news","68089030f1536a7f8d7dd5bd","archive"],"host":["course-booking-api-b30e","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"926f3d15-0eba-4df9-a758-aa72f924f1c2"},{"name":"Activate News","id":"166d2e7f-ea3a-4249-8b34-b698165564c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://course-booking-api-b30e.onrender.com/news/68089030f1536a7f8d7dd5bd/activate","urlObject":{"protocol":"https","path":["news","68089030f1536a7f8d7dd5bd","activate"],"host":["course-booking-api-b30e","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"166d2e7f-ea3a-4249-8b34-b698165564c4"}],"id":"c3a2d460-b471-4e89-a684-09b323eb7fc5","description":"<p>Houses endpoints for news management, allowing admins to add, retrieve, update, archive, and activate news items. Provides access to all active and specific news content.</p>\n","_postman_id":"c3a2d460-b471-4e89-a684-09b323eb7fc5"},{"name":"Enrollments","item":[{"name":"Enroll Course","id":"5d0b3b2f-4d52-4845-9b09-453ab965c51c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"enrolledCourses\" : [\r\n        {\r\n            \"courseId\": \"68098244877fcb1217aa72e5\"\r\n        }\r\n    ],\r\n    \"totalPrice\": 21000\r\n}","options":{"raw":{"language":"json"}}},"url":"https://course-booking-api-b30e.onrender.com/enrollments/enroll","urlObject":{"protocol":"https","path":["enrollments","enroll"],"host":["course-booking-api-b30e","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"5d0b3b2f-4d52-4845-9b09-453ab965c51c"},{"name":"Get Enrollments","id":"06c05492-b5c7-47cd-8175-cdbfa3148931","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://course-booking-api-b30e.onrender.com/enrollments/get-enrollments","urlObject":{"protocol":"https","path":["enrollments","get-enrollments"],"host":["course-booking-api-b30e","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"06c05492-b5c7-47cd-8175-cdbfa3148931"}],"id":"e64d1eca-a5c0-43f1-8224-c3f63e884f63","description":"<p>Features endpoints for handling course enrollments, including enrolling users in courses and retrieving enrollment details.</p>\n","_postman_id":"e64d1eca-a5c0-43f1-8224-c3f63e884f63"}]}