Fetch all bootcamps from bootcamps. Includes pagination, filtering, etc..
Get single bootcamp by ID.
Get all bootcamps within the radius a specific zipcode.
Key | Value | Description |
---|---|---|
select | name,description,housing | |
sort | name |
Add new boot camp 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.
Delete bootcamp from database.
Get, Create, Update and Delete Courses
Get a single course.
Creates a course and adds it to the corresponding bootcamp
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Update single course by id
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Route to upload a bootcamp photo
Delete Single Course By id
Routes for user authentication including register, login, reset password, etc..
Route gets logged in User from middeleware/header
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 |
Route to login User and provide 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 |
Content-Type | application/json | JSON Type |
Reset user password using token.
Updates users details.
Change password by verifing old password and sending new password.
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Log out user and remove token from cookie.
Get all user (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 database (admin)
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Delete User from database (admin)
Get all reviews from database and populate with bootcamp name and description.
Get reviews for a single bootcamp.
Fetch a review from database by id and populate Bootcamp name and description.
Insert a 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 review from database.