fetch all bootcamps from database, includes pagination, filtering etc
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | json type |
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 |
Update single bootcamp in database
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | json type |
Delete bootcamp from database
Get bootcamps within a radius of a specific zipcode
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | json type |
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 |
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 |
Update Course by Id
Delete course by Id
Routes for user authentication including register, login, reset password, etc
Add user to database with encrypted password
Login User with authorised credentials
| Key | Value | Description |
|---|---|---|
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYyMzA2MzA1M2I0ZWUwYTYzNmFmZGM2MSIsImlhdCI6MTY0NzMzODI0Nn0.Pm2h5inNCdA124s98FXW3fdC2Ig9gLNmOe0tBewiLlc |
Generate password token and send email
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | json type |
Reset user password using token
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | json type |
Update logged in user details
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | json type |
Update logged in user password , send in the body currentPassword and newPassword
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | json type |
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)
Update user in database (admin)
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 |
Add a review for a specific bootcamp
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | json type |
Update review for a bootcamp (user or admin)
Delete review from database (admin or user)