Backend API for DevCamper application to manage bootcamps, reviews, users and authentication.
Bootcamps CRUD functionality.
Fetch all bootcamps from database. Includes pagination, filtering and etc.
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
Get single bootcamp by id
Add new bootcamp to the database. Must be authenticated and must be publisher or admin.
Update single bootcamp in the database.
Delete a single bootcamp in the database.
Create a course for a specific bootcamp
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
Route to upload a bootcamp photo in the database
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
Create, Read, Update and Delete courses.
Get all courses from the database
Get the specific courses for a bootcamp
Update a course in the database
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
Remove course from the database
Routes for user authentication including register, login, reset password etc
Add user to the database with encrypted password
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
User authorization, by checking correct credential in the database
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
Get current logged in user
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY5NTlhNGQ3NmVhNWU2NDMyYTNlMjM1NCIsImlhdCI6MTc2NzU2NDA3MywiZXhwIjoxNzcwMTU2MDczfQ.EJ09hblWtClOuA7_rN8EK4_Kr-drHTd41rtMa61Bxns |
Generate password token and send email
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
Reset User’s password using a token
Update logged in user email and name
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
Update User’s password
CRUD functionality for users only available to admins
Get all users(Admin)
Get single user by id(Admin)
Add user to database(Admin)
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
Update user in the database(Admin)
Remove/Delete user from the database
Manage course reviews
Get all reviews from the database and populate with bootcamp name and description
Fetch the reviews for specific bootcamp
Fetch single review and populate bootcamp with name and description
Insert review for a specific bootcamp
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
Update review for the bootcamp in the database
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |