Backend API for the DevCamper application to manage bootcamps, courses, reviews, users and authentication
Routes for authentication including register, login, reset password etc
Generate password token and send email
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Get current user via token
Login user using email and password
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Clear token cookies
Add user to db with encrypted password
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Reset Password via generated token
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Update logged in user password, send in the body currentpassword and password
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Update 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
Key | Value | Description |
---|---|---|
limit | 2 | |
page | 2 |
Get single bootcamp by id
Update single bootcamp and database
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Route to upload a bootcamp photo
Key | Value | Description |
---|---|---|
file |
Create, read, update and delete courses
Create course with bootcampId
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Delete course with id
Get the specific course for a bootcamp
Get all courses in the database
Update course with course id
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Get all users with Admin acess