backend API for DevCampers application to manage bootcamps,courses,reviews,users and authentication
implement authorization and authentication for routes
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | jSON Type |
get current logged in user via it’s generated token
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | jSON Type |
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | jSON Type |
Add user to database with encrypted password
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | jSON Type |
reset user password via 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 user password via token
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | jSON Type |
logout the current user & clear cookie token
bootcamps CRUD functionality
add new bootcamp to database, you must be authenticated and need to be a publisher or admin
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | jSON Type |
Delete a single bootcamp from database by ID
fetch all bootcamps from database,includes pagination,filtering and much more
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | jSON Type |
Get Single Bootcamp by ID
Update a single Bootcamp to database by ID
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | jSON Type |
route to upload bootcamp photo
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | jSON Type |
| Key | Value | Description |
|---|---|---|
| file |
Create, Read, Update and delete courses
Create a course for specific Bootcamp
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | jSON Type |
Remove course from database
get all the courses from the database
get a single course by id
Update course to database
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | jSON Type |
Get all courses for a specific bootcamp
manage course reviews
insert a reviews for a specific bootcamp
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | jSON Type |
delete review from database
retrieve all reviews from datbase
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | jSON Type |
get all the reviews for a specefic bootcamp
get single review by id
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | jSON Type |
update review to databae
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | jSON Type |
CRUD functionality for users only availabe to admins
Create a new user (admin only)
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | jSON Type |
delete user from database (admin only)
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | jSON Type |
Get all users (admin)
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | jSON Type |
Get a single user by id (admin)
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | jSON Type |
Update user to database (admin only)
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | jSON Type |