Backend API for the DevCamper application to manage bootcamps, courses, reviews, users and authentication.
Bootcamps CRUD funtionality.
Fetch all bootcamps from database. Includes pagination filtering etc.
Get single bootcamp by ID
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON type |
Get bootcamps within the radius of a specific zipcode.
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON type |
Add a new bootcamp to database. Must be authenticated and must be publisher or admin user.
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON type |
Update single bootcamp in database.
Delete bootcamp from database.
Upload a photo for the bootcamp.
Creat, read, update and delete courses.
Get all courses in database.
Get the specific courses for a bootcamp.
Get a single course by id
Create a course for a specific bootcamp
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON type |
Update a course.
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON type |
Delete course from bootcamp.
Routes for user authentication, including register, login, reset password etc.
Add user to database with encrypted password
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON type |
Log into the database
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 logged in user password, send in the body currentPassword and newPassword.
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON type |
Log the user out and clear token cookie.
CRUD funtionality for users only available to admins.
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 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 review from database