fetch all bootcamps from database, includes pagination, filtering etc
Key | Value | Description |
---|---|---|
Content-Type | application/json | json type |
{ "name": "ModernTech Bootcamp", "description": "ModernTech has one goal, and that is to make you a rockstar developer and/or designer with a six figure salary. We teach both development and UI/UX", "website": "https://moderntech.com", "phone": "(222) 222-2222", "email": "enroll@moderntech.com", "address": "220 Pawtucket St, Lowell, MA 01854", "careers": [ "Web Development", "UI/UX", "Mobile Development" ], "housing": false, "jobAssistance": true, "jobGuarantee": false, "acceptGi": true }
Get single bootcamp by ID
Key | Value | Description |
---|---|---|
Content-Type | application/json | json type |
Add new bootcamp to database.
User Must be authenticated and must be publisher or admin
Key | Value | Description |
---|---|---|
Content-Type | application/json | json type |
{ "name": "Java Bootcamp", "description": "Devworks is a full stack JavaScript Bootcamp located in the heart of Boston that focuses on the technologies you need to get a high paying job as a web developer", "website": "https://devworks.com", "phone": "(111) 111-1111", "email": "enroll@devworks.com", "address": "Sylvania Magarpatta City, Pune, Maharashtra 411013", "careers": [ "Web Development", "UI/UX", "Business" ], "photo": "no-photo.jpg", "housing": true, "jobAssistance": true, "jobGuarantee": false, "acceptGi": true }
Update single bootcamp in database
Key | Value | Description |
---|---|---|
Content-Type | application/json | json type |
{ "housing": true }
Delete bootcamp from database
Get bootcamps within a radius of a specific zipcode
Key | Value | Description |
---|---|---|
Content-Type | application/json | json type |
{ "name": "Devcentral Bootcamp", "description": "Is coding your passion? Codemasters will give you the skills and the tools to become the best developer possible. We specialize in front end and full stack web development", "website": "https://devcentral.com", "phone": "(444) 444-4444", "email": "enroll@devcentral.com", "address": "45 Upper College Rd Kingston RI 02881", "careers": [ "Mobile Development", "Web Development", "Data Science", "Business" ], "housing": false, "jobAssistance": true, "jobGuarantee": true, "acceptGi": true }
Route to upload a bootcamp photo
Key | Value | Description |
---|---|---|
Content-Type | application/json | json type |
Key | Value | Description |
---|---|---|
file |
Create, read, update and delete courses
Key | Value | Description |
---|---|---|
select | title |
Get the specific courses for a bootcamp
Key | Value | Description |
---|---|---|
Content-Type | application/json | json type |
{ "name": "ModernTech Bootcamp", "description": "ModernTech has one goal, and that is to make you a rockstar developer and/or designer with a six figure salary. We teach both development and UI/UX", "website": "https://moderntech.com", "phone": "(222) 222-2222", "email": "enroll@moderntech.com", "address": "220 Pawtucket St, Lowell, MA 01854", "careers": [ "Web Development", "UI/UX", "Mobile Development" ], "housing": false, "jobAssistance": true, "jobGuarantee": false, "acceptGi": true }
Get Single Course by Id
Create a course for specific bootcamp
Key | Value | Description |
---|---|---|
Content-Type | application/json | json type |
Content-Type | application/json | json type |
{ "title": "Mobile App Development", "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", "weeks": 8, "tuition": 20000, "minimumSkill": "beginner", "scholarhipsAvailable": true }
Update Course by Id
{ "tuition": 5000, "minimumSkill": "beginner" }
Delete course by Id
Routes for user authentication including register, login, reset password, etc
Add user to database with encrypted password
{ "name": "Peter Theil", "email": "peter@gmail.com", "password": "123456", "role": "user" }
Login User with authorised credentials
Key | Value | Description |
---|---|---|
Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYyMzA2MzA1M2I0ZWUwYTYzNmFmZGM2MSIsImlhdCI6MTY0NzMzODI0Nn0.Pm2h5inNCdA124s98FXW3fdC2Ig9gLNmOe0tBewiLlc |
{ "email": "john@gmail.com", "password": "123456" }
{ "email": "peter@gmail.com", "password": "123456" }
Generate password token and send email
Key | Value | Description |
---|---|---|
Content-Type | application/json | json type |
{ "email": "john@gmail.com" }
Reset user password using token
Key | Value | Description |
---|---|---|
Content-Type | application/json | json type |
{ "password": "1234567" }
Update logged in user details
Key | Value | Description |
---|---|---|
Content-Type | application/json | json type |
{ "email": "john@gmail.com", "name": "John Smith" }
Update logged in user password , send in the body currentPassword and newPassword
Key | Value | Description |
---|---|---|
Content-Type | application/json | json type |
{ "currentPassword": "1234567", "newPassword": "123456" }
Logout user
CURD functionality for users only available to admins
Get all users (admin)
Get Single User by Id (admin)
Add user to database (admin)
{ "name": "Tom Hardy", "email": "tom@gmail.com", "password": "123456" }
Update user in database (admin)
{ "name": "Tom Brady" }
Delete User from database (admin)
Manage Course Reviews
Get all reviews from database and populate with bootcamp name and description
Fetch the reviews for specific bootcamp
Fetch a review from database by id and populate bootcamp name and description
Key | Value | Description |
---|---|---|
Content-Type | application/json | json type |
{ "title": "Nice course", "text": "i learnt a lot", "rating": 10 }
Add a review for a specific bootcamp
Key | Value | Description |
---|---|---|
Content-Type | application/json | json type |
{ "title": "Nice course", "text": "i learnt a lot", "rating": 10 }
Update review for a bootcamp (user or admin)
{ "title": "Great instructor", "text": "Updating reivew" }
Delete review from database (admin or user)