{"info":{"_postman_id":"fb8dcc55-1b82-41a1-a686-bcbd87177aef","name":"sports_complex_api","description":"<html><head></head><body><p>Welcome to the Sports Complex API! Our API allows you to manage sports classes for a variety of sports including baseball, basketball, football, boxing, cycling, fitness, golf, running, swimming, tennis, triathlon, and volleyball. You can enroll in classes, view available classes, and manage your enrolled classes. The API also includes an admin dashboard where employees can manage and view classes, change dates and times, and view users who applied for each course within a given period.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"24650906","collectionId":"fb8dcc55-1b82-41a1-a686-bcbd87177aef","publishedId":"2s93RZLUks","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-04-06T08:24:05.000Z"},"item":[{"name":"User","item":[{"name":"GetAll","id":"3f42e117-4e86-4dce-b1e3-dcba0c402b6f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3000/api/users","urlObject":{"protocol":"http","port":"3000","path":["api","users"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"3f42e117-4e86-4dce-b1e3-dcba0c402b6f"},{"name":"GetById","id":"15a98cc2-2dc8-4598-8371-97fe66433666","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3000/api/users/:id","urlObject":{"protocol":"http","port":"3000","path":["api","users",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"1","key":"id"}]}},"response":[],"_postman_id":"15a98cc2-2dc8-4598-8371-97fe66433666"},{"name":"VerifyEmail","id":"20fffc8e-41d9-4c01-aec1-0640d6d38aae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/verify-email/788f3c3c-080a-43e0-a025-3c08a555d0f2","urlObject":{"protocol":"http","port":"3000","path":["api","verify-email","788f3c3c-080a-43e0-a025-3c08a555d0f2"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"20fffc8e-41d9-4c01-aec1-0640d6d38aae"},{"name":"Login","id":"b5313e95-9e4e-4d14-9bbc-7d7696786470","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"k@gmail.com\",\n    \"password\": \"user\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/auth/login","urlObject":{"protocol":"http","port":"3000","path":["api","auth","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b5313e95-9e4e-4d14-9bbc-7d7696786470"},{"name":"Register","id":"6a472276-9b4f-4aa9-a380-307ce69acb4b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"king.markom@gmail.com\",\n    \"password\": \"user\",\n    \"first_name\": \"user3\",\n    \"last_name\": \"useric3\",\n    \"age_category\": \"adults\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/auth/register","urlObject":{"protocol":"http","port":"3000","path":["api","auth","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"6a472276-9b4f-4aa9-a380-307ce69acb4b"},{"name":"RegisterClass","id":"88c6d591-e30b-432c-a6b2-68b5a42112b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user_id\": \"1\",\n    \"class_id\": \"1\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/users/classes","urlObject":{"protocol":"http","port":"3000","path":["api","users","classes"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"88c6d591-e30b-432c-a6b2-68b5a42112b7"},{"name":"RegisterAppointment","id":"60621064-3200-4404-bbb1-784751dd8f16","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user_id\": \"1\",\n    \"appointment_id\": \"1\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/users/appointments","urlObject":{"protocol":"http","port":"3000","path":["api","users","appointments"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"60621064-3200-4404-bbb1-784751dd8f16"},{"name":"Update","id":"c3a2c98d-7768-4b3b-aa17-946d897433dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"age_category\": \"youth\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/users/:id","urlObject":{"protocol":"http","port":"3000","path":["api","users",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"1","key":"id"}]}},"response":[],"_postman_id":"c3a2c98d-7768-4b3b-aa17-946d897433dd"},{"name":"UnregisterClass","id":"6bfa50ba-010d-456d-b2a0-deef483e5bd7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n    \"user_id\": \"1\",\n    \"class_id\": \"1\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/users/classes","urlObject":{"protocol":"http","port":"3000","path":["api","users","classes"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"6bfa50ba-010d-456d-b2a0-deef483e5bd7"},{"name":"UnregisterAppointment","id":"c15d1194-4bf6-44b4-a9c5-7dac29a55a4b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n    \"user_id\": \"1\",\n    \"appointment_id\": \"1\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/users/appointments","urlObject":{"protocol":"http","port":"3000","path":["api","users","appointments"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c15d1194-4bf6-44b4-a9c5-7dac29a55a4b"}],"id":"3ab6b0b8-f448-43ec-bb32-04c7effa7c01","description":"<p>The <code>/api/user</code> endpoint is used for user-related actions, such as creating, updating, and deleting user accounts, as well as retrieving user profile information. Authentication credentials are required to access this endpoint, and specific parameters or request body data may be needed for each operation.</p>\n","_postman_id":"3ab6b0b8-f448-43ec-bb32-04c7effa7c01"},{"name":"Class","item":[{"name":"GetAll","id":"0fb799ea-9d91-4242-9b0c-4720d228e7e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3000/api/classes","description":"<p>Retrieves a list of all available classes.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","classes"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"0fb799ea-9d91-4242-9b0c-4720d228e7e8"},{"name":"GetById","id":"559b8714-6a30-48ba-ae90-122c1f2e8f45","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3000/api/classes/:id","description":"<p>Retrieves a single class by its ID.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","classes",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"1","key":"id"}]}},"response":[],"_postman_id":"559b8714-6a30-48ba-ae90-122c1f2e8f45"},{"name":"Create","id":"eba802e2-7942-49c4-95ed-b6b6f934ef92","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Handbel\",\n    \"description\": \"This is the description for this particullar class\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/classes","description":"<p>Creates a new class with a given name and description.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","classes"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"eba802e2-7942-49c4-95ed-b6b6f934ef92"},{"name":"Update","id":"ea449922-4fc9-417d-a746-781e03d40d5d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"description\": \"This is the UPDATED description for this particullar class\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/classes/:id","description":"<p>Updates a class with a given ID, replacing its name and description with new values.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","classes",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"1","key":"id"}]}},"response":[],"_postman_id":"ea449922-4fc9-417d-a746-781e03d40d5d"},{"name":"CreateReview","id":"2e261792-c5e5-4eb3-be33-1bbb6d2f46b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user_id\": \"1\",\n    \"class_id\": \"1\",\n    \"title\": \"This Class was greeeat TWO\",\n    \"body\": \"TWO I really like the instructor, he is so insightfull. And he is so handome. Oh my god im done, i found my purpose\",\n    \"grade\": \"2\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/classes/reviews","description":"<p>Create a class review</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","classes","reviews"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"2e261792-c5e5-4eb3-be33-1bbb6d2f46b5"},{"name":"UpdateReview","id":"946a9f13-5c5e-4263-8267-089716b5ad88","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"user_id\": \"1\",\n    \"class_id\": \"1\",\n    \"title\": \"This Class was greeeat TWO\",\n    \"body\": \"TWO I really like the instructor, he is so insightfull. And he is so handome. Oh my god im done, i found my purpose\",\n    \"grade\": \"3.4\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/classes/reviews/:id","description":"<p>Update the class review</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","classes","reviews",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"4","key":"id"}]}},"response":[],"_postman_id":"946a9f13-5c5e-4263-8267-089716b5ad88"},{"name":"DeleteReview","id":"05076dde-31c6-4bea-983e-817af19f90db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:3000/api/classes/reviews/:id","urlObject":{"protocol":"http","port":"3000","path":["api","classes","reviews",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"1","key":"id"}]}},"response":[],"_postman_id":"05076dde-31c6-4bea-983e-817af19f90db"}],"id":"b9ad7e89-4114-44c5-b6cd-c3c9738fdd98","description":"<p>The <code>/api/classes</code> endpoint provides a way to manage classes for the sports complex.</p>\n","_postman_id":"b9ad7e89-4114-44c5-b6cd-c3c9738fdd98"},{"name":"Appointment","item":[{"name":"GetAll","id":"1aee15ac-dcd0-4c86-b96c-24b7a8bfebca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3000/api/appointments?name=Swimming&age=youth","urlObject":{"protocol":"http","port":"3000","path":["api","appointments"],"host":["localhost"],"query":[{"key":"name","value":"Swimming"},{"key":"age","value":"youth"}],"variable":[]}},"response":[],"_postman_id":"1aee15ac-dcd0-4c86-b96c-24b7a8bfebca"},{"name":"getById","id":"cedb7fe2-ceb0-4865-b075-f419bbd88741","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3000/api/appointments/:id","urlObject":{"protocol":"http","port":"3000","path":["api","appointments",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"1","key":"id"}]}},"response":[],"_postman_id":"cedb7fe2-ceb0-4865-b075-f419bbd88741"},{"name":"Create","id":"9c771d42-d932-41b3-bf7d-d3475314168f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"class_id\": \"1\",\n    \"starting_at\": \"2023-04-30 20:00:00.000\",\n    \"age_category\": \"adults\",\n    \"duration\": \"30\",\n    \"max_enrollment\": \"23\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/appointments","urlObject":{"protocol":"http","port":"3000","path":["api","appointments"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"9c771d42-d932-41b3-bf7d-d3475314168f"},{"name":"Update","id":"160fc3c1-44b9-4d15-8173-fbecb9748dae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"class_id\": \"1\",\n    \"starting_at\": \"2023-04-09 20:24:03.972\",\n    \"age_category\": \"youth\",\n    \"duration\": \"30\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/appointments/:id","urlObject":{"protocol":"http","port":"3000","path":["api","appointments",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"1","key":"id"}]}},"response":[],"_postman_id":"160fc3c1-44b9-4d15-8173-fbecb9748dae"},{"name":"Delete","id":"f7b6096a-634d-4236-af6b-f10fd0e0bdd3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:3000/api/appointments/:id","urlObject":{"protocol":"http","port":"3000","path":["api","appointments",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"1","key":"id"}]}},"response":[],"_postman_id":"f7b6096a-634d-4236-af6b-f10fd0e0bdd3"}],"id":"7bcd3283-0098-494a-8f83-c59dff699342","_postman_id":"7bcd3283-0098-494a-8f83-c59dff699342","description":""},{"name":"Health","id":"2ec985e6-6fde-451b-8ceb-2fc941341989","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/health","description":"<p>Check if the server is healthy and running.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["health"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"2ec985e6-6fde-451b-8ceb-2fc941341989"}]}