Backend Api for creating the devCamper application to manage bootcamps, courses, reviews and authentication
Bootcamps CRUD functionalities
Fetch all bootcamps from database includes pagination, filtering etc
Get single bootcamps by id
Add new bootcamp 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
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Delete bootcamp from database
Get bootcamps within a radius of a specific zipcode
Route to upload bootcamp photo
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Create, read, update and delete courses
Get all courses in database
Get the specific courses for a bootcamp
Get single course by id
Create a new Course for a bootcamp
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Update Course in database
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Delete a single course
Routes for user authentication including register,login, reset password etc
register a user
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 |
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 |
Update logedin user password, send in the body currentPassword and newPassword
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
CRUD functionality for users only available to admins
Get all users (admin)
Get single user by id (admin)
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)
manage courses reviews
Get all reviews from data nd populate with bootcamp name and description
Fetch a review from data base by id and populate bootcamp name and description
Get reviews for a bootcamp by bootcampId
Add review for a specific bootcamp
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Delete a single review for a bootcamp
update review details by the review owner or admin
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |