Backend API for the DevCamper application to manage bootcamps, courses, reviews, users and authentication
Authentication routes
Register a user
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json |
Login a user
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json |
Get the currently logged in user
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | |
Forgot Password function to set resetPasswordToken and resetTokenExpire
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json |
Resets the users password
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json |
Update name and email
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json |
Allow a user to update password
Bootcamps CRUD functionality
Fetch all bootcamps from database, includes pagination, filtering, etc.
Get single bootcamp by id
Add new bootcamp to database, must be authenticated and must be Publisher or Admin role
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
Save changes to a bootcamp, must be authenticated as Publisher or Admin
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
Upload a photo for bootcamp
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
| Key | Value | Description |
|---|---|---|
| file |
Delete a bootcamp, must be authenticated as Publisher or Admin
CRUD for Courses
Get all courses
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json |
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json |
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json |
Reviews for bootcamps
Get All Reviews
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json |
Get a single review
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json |
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json |
Create a review
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json |
Update a review (either user or admin)
Delete review
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json |
CRUD functionality for Admin users
Get a user
Get a user
Get All Users
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json |
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json |