Backend API documentation on how to manage bootcamps, courses, reviews, users and authentication.
For more in depth docs with sample requests, visit the Postman Doc
Routes for user authentication including register, login, reset password, etc
Add user to database with encrypted password
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 |
Authorization | Bearer your.jwt.token |
Generate password token and send email
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 name and email
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Authorization | Bearer your.jwt.token |
Update logged in user password, send in the body currentPassword and newPassword
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Authorization | Bearer your.jwt.token |
Clear token cookie
Key | Value | Description |
---|---|---|
Authorization | Bearer your.jwt.token |
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. Only 1 bootcamp allowed per publisher
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Authorization | Bearer your.jwt.token |
Update single bootcamp in database
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Authorization | Bearer your.jwt.token |
Delete bootcamp from database
Key | Value | Description |
---|---|---|
Authorization | Bearer your.jwt.token |
Get bootcamps within a radius of a specific zipcode
Route to upload a bootcamp photo
Key | Value | Description |
---|---|---|
Authorization | Bearer your.jwt.token |
Key | Value | Description |
---|---|---|
file | ||
Autho |
Create, read, update and delete courses
Get all courses in database
Get the specific courses for a bootcamp
Get a single course by its ID
Create a course for a specific bootcamp
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Authorization | Bearer your.jwt.token |
Update course in database
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Authorization | Bearer your.jwt.token |
Remove course from database
Key | Value | Description |
---|---|---|
Authorization | Bearer your.jwt.token |
Manage course 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
Insert review for a specific bootcamp
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Authorization | Bearer your.jwt.token |
Update review in database
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Authorization | Bearer your.jwt.token |
Remove review from database
Key | Value | Description |
---|---|---|
Authorization | Bearer your.jwt.token |
Key | Value | Description |
---|---|---|
Autho |
CRUD functionality for users only available to admin users
Get all users (admin)
Key | Value | Description |
---|---|---|
Authorization | Bearer your.jwt.token |
get single user by id (admin)
Key | Value | Description |
---|---|---|
Authorization | Bearer your.jwt.token |
Add user to database (admin)
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Authorization | Bearer your.jwt.token |
Update user in database (admin)
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Authorization | Bearer your.jwt.token |
Delete user from database (admin)
Key | Value | Description |
---|---|---|
Authorization | Bearer your.jwt.token |
Key | Value | Description |
---|---|---|
Author |