Backend API for the DevCamper application to manage bootcamps, courses, revies, users and authentication.
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.
Key | Value | Description |
---|---|---|
Content-Type | application/json | jSON Type |
Update single bootcamp in database.
Key | Value | Description |
---|---|---|
Content-Type | application/json | jSON Type |
Delete bootcamp from database.
Get bootcamps within a radius of a specific zipcode.
Route to upload a bootcamp photo.
Key | Value | Description |
---|---|---|
Content-Type | application/json | jSON Type |
Key | Value | Description |
---|---|---|
file |
CRUD courses
Get the specific courses for a bootcamp
Fetch single course from database by ID
Create a course for a specific bootcamp
Key | Value | Description |
---|---|---|
Content-Type | application/json | jSON Type |
Key | Value | Description |
---|---|---|
Content-Type | application/json | jSON Type |
Delete Course from Database.
Key | Value | Description |
---|---|---|
Content-Type | application/json | jSON Type |
Routes for user authentication including register, login, reset password, etc.
Key | Value | Description |
---|---|---|
Content-Type | application/json | jSON Type |
Login the user
Key | Value | Description |
---|---|---|
Content-Type | application/json | jSON Type |
Get data of logged in user
Key | Value | Description |
---|---|---|
Content-Type | application/json | jSON Type |
Generate password token and send email
Key | Value | Description |
---|---|---|
Content-Type | application/json | jSON Type |
Key | Value | Description |
---|---|---|
Content-Type | application/json | jSON Type |
Update logged in user name and email
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
CRUD functionality for users only available to admins.
Get All Users (admin)
Get Single User (admin)
Create New User (admin)
Key | Value | Description |
---|---|---|
Content-Type | application/json | jSON Type |
Update a User (Admin)
Key | Value | Description |
---|---|---|
Content-Type | application/json | jSON Type |
Delete a User (Admin)