This contains full documentation of routes about the backend server API for the
DEVCAMP MASTERY website.
Routes for admins to manage user accounts.
Only for user with role admin and must be logged in(apply to all routes from
Admin Panel collection.
Get a single user by ID.
Get a list with all users from database.
Create a new user.
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json |
Update details for a specific user using his ID.
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json |
Routes that includes all functionality for a user to interact with the website (login, logout, reset password etc)
Add a new user to database with a encrypted password.
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json |
Log in a user, also create a JWT token for persisting logged session.
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json |
Generate a reset password token and send it via email in order to
reset a forgotten password.
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json |
Get all data about the current logged in user.
Log out a user deleting token cookie.
Reset user password using the token from email, sent via ‘reset
forgot password’ route.
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json |
Update email or username for logged in user.
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json |
Update password for logged in user.
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json |
Manage Bootcamps (CRUD functionality)
Fetch all the bootcamps available from the database
Get a specific bootcamp by ID
Get bootcamps within a radius of a specific zipcode (distance in km)
Create a new bootcamp and add it to the database.
publisher
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json |
Update a specific bootcamp in the database.
publisher
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json |
Upload photo profile for a specific bootcamp.
publisher
| Key | Value | Description |
|---|---|---|
| photo |
Delete a specific bootcamp from database.
publisher
Manage Courses (CRUD functionality)
Get all courses from the database.
Get a single course by ID.
Create a new course for a specific Bootcamp and add it to the database.
publisher
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json |
Update a specific course in the database.
publisher
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json |
Delete a course from the database.
publisher
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json |
Manage Reviews (CRUD functionality)
Get all reviews from the database.
Get a specific reviews from the database.
Write a new reviews for a specific Bootcamp and add it to the database.
user
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json |
Update a specific review in database.
user
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json |
Delete a review from the database.
user