Backend API for the BootcampShop application to manage bootcamps, courses, reviews, users and authetication.
Bootcamps CRUD functionality
Fetch all bootcamps from database. Includes pagination, filtering,
etc.
Key | Value | Description |
---|---|---|
Content-Type | application/json |
jSON Type |
Get single botcamp by ID.
Add new bootcamp to database. Must be authenticated and must be a
publisher/admin.
Key | Value | Description |
---|---|---|
Content-Type | application/json |
jSON Type |
Update a single bootcamp in the database.
Delete bootcamp from database.
Key | Value | Description |
---|---|---|
Content-Type | application/json |
jSON Type |
Get bootcamps within a radius of a specific zipcode
Key | Value | Description |
---|---|---|
Content-Type | application/json |
jSON Type |
Route to upload a bootcamp photo.
CRUD methods for Courses
Gets all Courses in the database
Key | Value | Description |
---|---|---|
Content-Type | application/json |
jSON Type |
Get specific course for a Bootcamp
Key | Value | Description |
---|---|---|
Content-Type | application/json |
jSON Type |
Get single course by it’s ID
Key | Value | Description |
---|---|---|
Content-Type | application/json |
jSON Type |
Add a new course for a soecific bootcamp to the database.
Key | Value | Description |
---|---|---|
Content-Type | application/json |
jSON Type |
Update course in Database.
Key | Value | Description |
---|---|---|
Content-Type | application/json |
jSON Type |
Remove course from database.
Key | Value | Description |
---|---|---|
Content-Type | application/json |
jSON Type |
Routes for user authentication including register, login, reset password etc.
Add user to the database with encrypted password.
Key | Value | Description |
---|---|---|
Content-Type | application/json |
jSON Type |
Login user
Key | Value | Description |
---|---|---|
Content-Type | application/json |
jSON Type |
Get Logged in user via token
Key | Value | Description |
---|---|---|
Content-Type | application/json |
jSON Type |
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 |
Key | Value | Description |
---|---|---|
Content-Type | application/json |
jSON Type |
Update Logged In user password. Send in the body the currentPassword
and newPassword.
Key | Value | Description |
---|---|---|
Content-Type | application/json |
jSON Type |
Clear token cookie
CRUD functionality for users with admin role assigned to them.
Get all users {admin}
Key | Value | Description |
---|---|---|
Content-Type | application/json |
jSON Type |
Get Single user by id {admin}
Key | Value | Description |
---|---|---|
Content-Type | application/json |
jSON Type |
Add user to database (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 |
Delete user from database (admin).
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 |
Update review in database
Key | Value | Description |
---|---|---|
Content-Type | application/json |
jSON Type |
Remove from database.
Key | Value | Type |
---|---|---|
URL | http://localhost:6000 |