Backend API for the DevCamper application to manage bootcamps, courses, reviews, users and authentication
Bootcamps CRUD functionality
Fetch all bootcamps from database includes pagination, filtering, etc
Get single bootcamp 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 |
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Update single bootcamp in database
Delete bootcamp from database
Key | Value | Description |
---|---|---|
select | name,description,housing | |
sort | -name |
Key | Value | Description |
---|---|---|
file |
Courses CRUD functionality
Get the spesific courses for a bootcamp
Fetching single course
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
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 |
Add user to database with encrypted password
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Log out current user and clear cookie
Get login user via token, if cookies available there is no need to jwt token, we can use No Auth.
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 |
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
CRUD functionality for users only available to admin
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 |
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Manage course reviews
Fetch all reviews from database
Fetch a review from database by id and populate Bootcamp name and description
Get all reviews for a spesific bootcamp fro database
Create a new review for a spesific bootcamp
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Update review from database for only own user or admin
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |