Route for user register, logging, reset passowrd etc
get logged in user via token
Endpoint:
Method: GET
Type: RAW
URL: {{URL}}/api/v1/auth/me
Headers:
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON content type |
Body:
{
"name": "test",
"description": "ModernTech has one goal, and that is to make you a rockstar developer and/or designer with a six figure salary. We teach both development and UI/UX",
"website": "https://moderntech.com",
"phone": "(222) 222-2222",
"email": "[email protected]",
"address": "220 Pawtucket St, Lowell, MA 01854",
"careers": ["Web Development", "UI/UX", "Android Development"],
"housing": false,
"jobAssistance": true,
"jobGuarantee": false,
"acceptGi": true
}
Clears token cookie
Endpoint:
Method: GET
Type:
URL: {{URL}}/api/v1/auth/logout
Add a user to database with encrypted password
Endpoint:
Method: POST
Type: RAW
URL: {{URL}}/api/v1/auth/register
Headers:
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON content type |
Body:
{
"name": "Natasha hailey",
"email": "[email protected]",
"password": "123456",
"role": "user"
}
Reset password using a random token via email
Endpoint:
Method: PATCH
Type: RAW
URL: {{URL}}/api/v1/auth/resetpassword/6d8614f2b6e603a06f7141211eb875e518c3821f
Headers:
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON content type |
Body:
{
"password": "12345678"
}
Update logged in user password, passing currentPassword and newPassword in the body
Endpoint:
Method: PATCH
Type: RAW
URL: {{URL}}/api/v1/auth/updatepassword
Headers:
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON content type |
Body:
{
"currentPassword": "123456",
"newPassword": "1234567"
}
updates name and email of a user
Endpoint:
Method: PATCH
Type: RAW
URL: {{URL}}/api/v1/auth/updatedetails
Headers:
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON content type |
Body:
{
"email": "[email protected]",
"name": "John Doe"
}
send token for forgetpassword
Endpoint:
Method: POST
Type: RAW
URL: {{URL}}/api/v1/auth/forgotpassword
Headers:
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON content type |
Body:
{
"email": "[email protected]"
}
login user and sends back a token
Endpoint:
Method: POST
Type: RAW
URL: {{URL}}/api/v1/auth/login
Headers:
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON content type |
Body:
{
"email": "[email protected]",
"password": "123456"
}
Add new bootcamp to database, must be publisher or admin
Endpoint:
Method: POST
Type: RAW
URL: {{URL}}/api/v1/bootcamps
Headers:
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON content type |
Body:
{
"name":"ModernTech Bootcamp",
"description": "ModernTech has one goal, and that is to make you a rockstar developer and/or designer with a six figure salary. We teach both development and UI/UX",
"website": "https://moderntech.com",
"phone": "(222) 222-2222",
"email": "[email protected]",
"address": "220 Pawtucket St, Lowell, MA 01854",
"careers": ["Web Development", "UI/UX", "Android Development"],
"housing": false,
"jobAssistance": true,
"jobGuarantee": false,
"acceptGi": true
}
Delete a bootcamp from database
Endpoint:
Method: DELETE
Type:
URL: {{URL}}/api/v1/bootcamps/60d32aed202924274054e4bd
Fetch a single bootcamp with ID
Endpoint:
Method: GET
Type:
URL: {{URL}}/api/v1/bootcamps/60811f14cdea3c17814e2661
Fetch all bootcamps with sorting,pagination and filtering
Endpoint:
Method: GET
Type:
URL: {{URL}}/api/v1/bootcamps
Endpoint:
Method: GET
Type:
URL: {{URL}}/api/v1/bootcamps/radius/02118/30
Update a single bootcamp in database
Endpoint:
Method: PATCH
Type: RAW
URL: {{URL}}/api/v1/bootcamps/608125b274703a19cdeaaae2
Headers:
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON content type |
Body:
{
"housing": true
}
Create a course for a specific bootcamp
Endpoint:
Method: POST
Type: RAW
URL: {{URL}}/api/v1/bootcamps/60cc446a8dfb5b11c1191d0d/courses
Headers:
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON content type |
Body:
{
"title": "Test course 2",
"description": "This is a dummy course",
"weeks": 6,
"tuition": 20000,
"minimumSkill": "intermediate",
"scholarshipsAvailable": false
}
Delete a course by id
Endpoint:
Method: DELETE
Type: RAW
URL: {{URL}}/api/v1/courses/60c73c98ca3b821e27fe5d55
Get all courses or of a bootcamp
Endpoint:
Method: GET
Type:
URL: {{URL}}/api/v1/courses
Query params:
Key | Value | Description |
---|---|---|
tuition[lt] | 10000 |
Get a single course by ID
Endpoint:
Method: GET
Type:
URL: {{URL}}/api/v1/courses/5d725a4a7b292f5f8ceff789
get all courses of a particular bootcamp
Endpoint:
Method: GET
Type:
URL: {{URL}}/api/v1/bootcamps/5d713995b721c3bb38c1f5d0/courses
Update a course by id
Endpoint:
Method: PUT
Type: RAW
URL: {{URL}}/api/v1/courses/60cc44ed8dfb5b11c1191d0e
Headers:
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON content type |
Body:
{
"weeks": 16,
"minimumSkill": "advanced"
}
manage bootcamp reviews
post reviews for a specific bootcamp
Endpoint:
Method: POST
Type: RAW
URL: {{URL}}/api/v1/bootcamps/60d2e58504c33d3131f7f67b/reviews
Headers:
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON content type |
Body:
{
"title": "cool bootcamp",
"text": "dsjfsd dsfsdjfsd sdfjdsifejif",
"rating": 10
}
Submit review for a specific bootcamp
Endpoint:
Method: POST
Type: RAW
URL: {{URL}}/api/v1/bootcamps/60d2e58504c33d3131f7f67b/reviews
Headers:
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON content type |
Body:
{
"title": "cool bootcamp",
"text": "dsjfsd dsfsdjfsd sdfjdsifejif",
"rating": 10
}
Rempve review from database
Endpoint:
Method: DELETE
Type: RAW
URL: {{URL}}/api/v1/reviews/60d2e71204c33d3131f7f67e
Get a review with id from database and populate it with corresponding bootcamp details
Endpoint:
Method: GET
Type:
URL: {{URL}}/api/v1/reviews/5d7a514b5d2c12c7449be021
Get all reviews from database and populate it with corresponding bootcamp details
Endpoint:
Method: GET
Type:
URL: {{URL}}/api/v1/reviews
Fetch the reviews for a specific bootcamp
Endpoint:
Method: GET
Type:
URL: {{URL}}/api/v1/bootcamps/5d725a037b292f5f8ceff787/reviews
update review in database
Endpoint:
Method: PATCH
Type: RAW
URL: {{URL}}/api/v1/reviews/60d2e71204c33d3131f7f67e
Headers:
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON content type |
Body:
{
"title": "Fucking sheeet"
}
CRUD functionality for users, available only for the admin
create a user (admin)
Endpoint:
Method: POST
Type: RAW
URL: {{URL}}/api/v1/users
Headers:
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON content type |
Body:
{
"name": "William",
"email": "[email protected]",
"password": "123456"
}
delete a user by id (Admin)
Endpoint:
Method: DELETE
Type: RAW
URL: {{URL}}/api/v1/users/60d17a2e5e0aa912c7f02485
Headers:
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON content type |
Body:
{
"name": "William",
"email": "[email protected]",
"password": "123456"
}
single user by id (admin)
Endpoint:
Method: GET
Type:
URL: {{URL}}/api/v1/users/5c8a1d5b0190b214360dc040
get list of users(admin)
Endpoint:
Method: GET
Type:
URL: {{URL}}/api/v1/users
update a user by id (admin)
Endpoint:
Method: PUT
Type: RAW
URL: {{URL}}/api/v1/users/5c8a1d5b0190b214360dc040
Headers:
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON content type |
Body:
{
"email": "[email protected]"
}
Made with ♥ by thedevsaddam | Generated at: 2021-06-25 11:23:13 by docgen =======
Route for user register, logging, reset passowrd etc
get logged in user via token
Key | Value | Description |
---|---|---|
Content-Type | application/json |
JSON content type |
{ "name": "test", "description": "ModernTech has one goal, and that is to make you a rockstar developer and/or designer with a six figure salary. We teach both development and UI/UX", "website": "https://moderntech.com", "phone": "(222) 222-2222", "email": "[email protected]", "address": "220 Pawtucket St, Lowell, MA 01854", "careers": ["Web Development", "UI/UX", "Android Development"], "housing": false, "jobAssistance": true, "jobGuarantee": false, "acceptGi": true }
Add a user to database with encrypted password
Key | Value | Description |
---|---|---|
Content-Type | application/json |
JSON content type |
{ "name": "Natasha hailey", "email": "[email protected]", "password": "123456", "role": "user" }
]
updates name and email of a user
Key | Value | Description |
---|---|---|
Content-Type | application/json |
JSON content type |
{ "email": "[email protected]", "name": "John Doe" }
send token for forgetpassword
Key | Value | Description |
---|---|---|
Content-Type | application/json |
JSON content type |
{ "email": "[email protected]" }
login user and sends back a token
Key | Value | Description |
---|---|---|
Content-Type | application/json |
JSON content type |
{ "email": "[email protected]", "password": "123456" }
Add new bootcamp to database, must be publisher or admin
Key | Value | Description |
---|---|---|
Content-Type | application/json |
JSON content type |
{ "name":"ModernTech Bootcamp", "description": "ModernTech has one goal, and that is to make you a rockstar developer and/or designer with a six figure salary. We teach both development and UI/UX", "website": "https://moderntech.com", "phone": "(222) 222-2222", "email": "[email protected]", "address": "220 Pawtucket St, Lowell, MA 01854", "careers": ["Web Development", "UI/UX", "Android Development"], "housing": false, "jobAssistance": true, "jobGuarantee": false, "acceptGi": true }
manage bootcamp reviews
CRUD functionality for users, available only for the admin
create a user (admin)
Key | Value | Description |
---|---|---|
Content-Type | application/json |
JSON content type |
{ "name": "William", "email": "[email protected]", "password": "123456" }
delete a user by id (Admin)
Key | Value | Description |
---|---|---|
Content-Type | application/json |
JSON content type |
{ "name": "William", "email": "[email protected]", "password": "123456" }
update a user by id (admin)
Key | Value | Description |
---|---|---|
Content-Type | application/json |
JSON content type |
{ "email": "[email protected]" }