the code coach projct [SERVER]

logo

Bootcamp 7

Explore foundational APIs and endpoints that serve as the core of your application's functionality. Ideal for developers familiarizing themselves with the system.

Description

Fetch all bootcamps from database. Includes pagination, filtering, etc

Description

Get single bootcamp by ID

URL Variables
Key Value Description
id 65d52c63ef657741f123aa10
Description

Fetch all bootcamps within req. radius.

Headers
Key Value Description
location.city auckland
Description

Add new bootcamp to database. Must be authenticated and must be publisher or admin.

Headers
Key Value Description
Content-Type application/json

JSON Type

Body
{ "name": "TEST", "description": "IBM INTERNATIONAL BOOTCAMP is a full stack JavaScript Bootcamp located in the heart of Auckland that focuses on the technologies you need to get a high paying job as a web developer", "website": "https://IBMdev.com", "phone": "(111) 111-1111", "email": "enroll@IBMdev.com", "duration": "10 Weeks", "address": "123 Queen Street, New Llyn, Auckland 1053", "careers": [ "Web Development", "IBM Data Science", "Software QA", "UI/UX", "Business", "Back-end", "Dev Ops", "Software QA"], "housing": true, "jobAssistance": true, "jobGuarantee": false, "acceptGi": true }
Description

Update single bootcamp in database

URL Variables
Key Value Description
id 5d725a1b7b292f5f8ceff458
Body
{ "name" : "JDev Bootcamp" }
Description

Delete bootcamp from database

URL Variables
Key Value Description
id 65da99e24c32ed3e3b09fe3d
Description

Request route for Uploading a Photo

URL Variables
Key Value Description
id 5d725a1b7b292f5f8cefb098
Body
Key Value Description
photo

Course 6

Access APIs related to course management, including enrollment, progress tracking, and content delivery. Perfect for integrating educational features into your application.

Description

Fetch all courses from database. Includes pagination, filtering, etc

Description

Get courses populated with Bootcamp details

URL Variables
Key Value Description
bootcampId 5d725a037b292f5f8ceff787
Description

Get single course by ID

URL Variables
Key Value Description
id 65d44e14b8c03a047c14ec62
Description

Add new course to database. Must be authenticated and must be publisher or admin.

Headers
Key Value Description
Content-Type application/json

JSON Type

URL Variables
Key Value Description
bootcampId
Body
{ "title": "TEST Front End Webby Dev", "description": "This course will provide you with all of the essentials to become a successful frontend web developer. You will learn to master HTML, CSS and front end JavaScript, along with tools like Git, VSCode and front end frameworks like Vue", "duration": 12, "tuition": 3400, "minimumSkill": "intermediate", "scholarhipsAvailable": true }
Description

Update single course in database

Headers
Key Value Description
Content-Type application/json

JSON Type

URL Variables
Key Value Description
id 5d725a4a7b292f5f8ceff789
Body
{ "tuition": 3400 }
Description

Delete courses from database

URL Variables
Key Value Description
id

Authentication 8

Secure your application with robust authentication APIs. This folder includes endpoints for user login, registration, and token management, ensuring a safe and controlled user access environment.

Description

Add User to database with encrypted password

Headers
Key Value Description
Content-Type application/json

JSON Type

Body
Key Value Description
firstname "test"
lastname urlencoded
username @test
password 123456
role trainer
Headers
Key Value Description
Content-Type application/json

JSON Type

Headers
Key Value Description
Content-Type application/json

JSON Type

Body
{ "email": "ballyalleydev@gmail.com", "password": "123456" }
Description

Log user out of the database.

Headers
Key Value Description
Content-Type application/json

JSON Type

Body
{ "email": "tina@test.com" }
Headers
Key Value Description
Content-Type application/json

JSON Type

URL Variables
Key Value Description
resetToken 6149b28a12ba9fd0091342c63ade354d39415967
Body
{ "password": "123456" }
Description

Updating the user’s name and email.

Headers
Key Value Description
Content-Type application/json

JSON Type

Body
{ "firstname":"test" }
Description

Updates logged-in user’s password.

Headers
Key Value Description
Content-Type application/json

JSON Type

Body
{ "currentPassword": "123456", "newPassword": "123456789" }

User 5

Handle user-related functionalities through APIs in this folder. This includes user profile management, preferences, and any other features tied directly to the individual user experience.

Description

Get All Users details. for Admin CRUD Operations.

Description

Get a single User’s details from the database, for Admin CRUD Operations.

URL Variables
Key Value Description
id 65d44e14b8c03a047c14ec5a
Description

Create a single User to the database. restricted to Admin Operations.

Headers
Key Value Description
Content-Type application/json

JSON Type

Body
{ "firstname": "Bay", "lastname": "Saddiq", "password":"123456", "email": "saddiq@example.com", "username": "@beySaq", "role": "5c3b08ae6d663a3c4e8f3566", "avatar": "no-photo.jpg", "location": "Auckland, NZ" }
Description

Update a single User in the database. restricted to only Admins Operations.

Headers
Key Value Description
Content-Type application/json

JSON Type

URL Variables
Key Value Description
id 65d40fb6d4655d5ed034f598
Body
{ "firstname": "Tony Jr", "email": "mylittlefriends@yahoo.com" }
Description

Delete a single User from the database. restricted to Admin Operations.

URL Variables
Key Value Description
id 65d40fb6d4655d5ed034f598
Description

Request route for Uploading an Avatar

URL Variables
Key Value Description
id 5d725a1b7b292f5f8cefb098
Body
Key Value Description
photo

Feedback 6

Manage user feedback effectively by utilizing APIs in this folder. Capture, analyze, and respond to user comments, reviews, and suggestions to enhance the user experience.

Description

Get ALL Feedbacks from the database.

Description

Fetch all reviews for a certain Bootcamp.

URL Variables
Key Value Description
bootcampId 5d725a037b292f5f8ceff787
Description

Fetch a single Feedback from the database.

URL Variables
Key Value Description
id 5d7a514b5d2c12c7449be021
Description

Leave a Feedback for the bootcamp.

Headers
Key Value Description
Content-Type application/json

JSON Type

URL Variables
Key Value Description
bootcampId 5d725a1b7b292f5f8cefb098
Body
{ "title": "Great EXPERIENCE TEST!", "body": "Had a bad experience, please dont waste your time enrolling to this bootcamp!", "rating": 9 }
Description

Update a feedback for the bootcamp

Headers
Key Value Description
Content-Type application/json

JSON Type

URL Variables
Key Value Description
id
Description

Delete a feedback for the bootcamp.

URL Variables
Key Value Description
id 65d891bd431277e00055c32b