Backend API for the DevCamper application to manage bootcamps courses, reviews, users and authentication.
Bootcamps CRUD functionality
Fetch all bootcamps from database. Includes pagination, filtering and more.
Get single bootcamp by ID
Add new bootcamp to database. Must be authenticated and must be publisher or admin.
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
Update single bootcamp in database
Delete bootcamp from database
Get bootcamps within a radius of a specific zipcode
Route to upload a bootcamp photo
Routes for courses that are being served in the diferent bootcamps
Get all available courses for all bootcamps
Get Single Course
Create a course for a specific bootcamp
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
Update single course
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
Delete a single course
Routes for user authentication including register, login, reset password and more.
Add user
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
Login User
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
Get information on the logged in User
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY5MDQ1NTEwYTBmZWM0NDI5M2NiYjU5MiIsImlhdCI6MTc2MTg5ODI4MywiZXhwIjoxNzY0NDkwMjgzfQ.sVH1g99ihQnizqdDwoS0OcsLI8trkSH1DSLQn0El0kY |
Reset Password User 10 min token returned. Mail send out from mailtrap.io
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
Reset Password using token
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
Update Name and Email for User
| 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 |
Clear token cookie
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
CRUD functionality for users only available for admins
Get all users (only admin can access)
Get single user by ID (admin only)
Add user to database (admin only)
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
Update user in database (admin only)
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
Delte Single User from Database (admin only)
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
Reviews
Get all reviews from database and populate with bootcamp name and description
Fetch the reviews for a specific Bootcamp
Fetch a review from database by id and populate bootcamp name and description
Add review to Database (only user and admin)
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
Update Single Review. Only for the user that own the review or admin.
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |
Remove review from database (only user that owns the review and admin)
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | JSON Type |