Backend API for the Bootcamp application to manage bootcamps, courses, reviews, users and authentication
Routes for user authentication including register, login, reset pass ect
This route will generate password token and send an email
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Log current user out and clear cookies
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Add user to DB with encrypted password
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Update users password
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Update logged in user email and name
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVjOGExZDViMDE5MGIyMTQzNjBkYzAzMSIsImlhdCI6MTYwMTgxMDQwOSwiZXhwIjoxNjAyNjc0NDA5fQ.AJt3jdQGYYMmPQwRsvKq0zWtcV1N-Ty4_i3P5Murgwg |
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 |
Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVmNzZkYzZmNzFmMTVlMjNkMmNjM2YxOCIsImlhdCI6MTYwMTYzNjIwOCwiZXhwIjoxNjAyNTAwMjA4fQ.cwFAWQN9e6jTWe7awfu5HCQbZS2_jZveqNhiHOl-0-o |
Delete bootcamp from database
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Fetch all bootcamps from database. Includes pagination, filtering, etc
Get bootcamps within radius of a specific zipcode
Fetch single bootcamp by Id
Update single bootcamp in database
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Rout to upload a bootcamp photo
Key | Value | Description |
---|---|---|
file |
CRUD courses
Create a course for a specific bootcamp
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Delete course from DB
Get the specific courses for a bootcamp
Get all courses in DB
Key | Value | Description |
---|---|---|
page | 2 | |
limit | 2 |
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Manage course reviews
Add review for an individual bootcamp providing bootcampId
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Get all reviews from DB and populate with bootcamp name and description
Fetch the reviews for a specific bootcamp providing the bootcampId
Fetch review by providing an Id
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
CRUD functionality for users only available to admins
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 |