Backend API for the DevCamper application to manage bootcamps, courses, reviews, users and authentication
Routes for user authentication including register, login, reset password, etc
Generate password token and send email
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
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 using token
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 |
Update logged in user name and email
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Bootcamps CRUD functionality
Add new bootcamp to database. Must be authenticated and must be publisher or admin
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Delete bootcamp from database
Fetch all bootcamps from database. Includes pagination, filtering, etc
Get bootcamps within a radius of a specific zipcode
Get single bootcamp by ID
Update single bootcamp in database
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Route to upload a bootcamp photo
Create a course for a specific bootcamp
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Remove course from database
Get all courses in database
Get the specific courses for a bootcamp
Get a single course by its ID
Update course in database
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Manage course reviews
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Delete review from database
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Get all reviews from database and populate with bootcamp name and description
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Fetch the reviews for a specific bootcamp
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Fetch a review from database by id and populate Bootcamp name and description
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Update review in database
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
CRUD functionality for users only available to admin
Add a user to database (admin)
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Delete user from database (admin)
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Get all users admin
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Get single user by id (you must be a admin)
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Update user in the database (admin)
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |