DevCamper API

Backend API for the DevCamper Application to manage bootcamps, courses, reviews and authentication.

Bootcamps 7

Bootcamp CRUD functionality

Description

Add new bootcamp to database. Must be authenticated, publisher or admin.

Headers
KeyValueDescription
Content-Typeapplication/json

JSON Type

AuthorizationBearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY0YjQxMGM2NGQ5NDE0NGFmOTdiZTg1OCIsImlhdCI6MTY4OTUyMzgzMiwiZXhwIjoxNjkyMTE1ODMyfQ.qPUP9-q408WJVKn0jlNir1URrcWiLwk4ky68NhwD5ts
Body
{ "name": "Test Bootcamp", "description": "Is coding your passion? Codemasters will give you the skills and the tools to become the best developer possible. We specialize in front end and full stack web development", "website": "https://devcentral.com", "phone": "(444) 444-4444", "email": "enroll@devcentral.com", "address": "45 Upper College Rd Kingston RI 02881", "careers": [ "Mobile Development", "Web Development", "Data Science", "Business" ], "housing": false, "jobAssistance": true, "jobGuarantee": true, "acceptGi": true }
Description

Update single bootcamp by ID

Headers
KeyValueDescription
Content-Typeapplication/json

JSON Type

Body
{ "housing": true }

Courses 6

Headers
KeyValueDescription
Content-Typeapplication/json

JSON Type

Body
{ "title": "Web & Development", "description": "Get started building websites and web apps with HTML/CSS/JavaScript/PHP. We teach you", "weeks": 10, "tuition": 14500, "minimumSkill": "beginner", "scholarhipsAvailable": true }
Headers
KeyValueDescription
Content-Typeapplication/json

JSON Type

Body
{ "tuition": 3000, "weeks": "3" }

Authentication 8

Headers
KeyValueDescription
Content-Typeapplication/json

JSON Type

Body
{ "name": "John Doe", "email": "john@gmail.com", "password": "123456", "role": "publisher" }
Headers
KeyValueDescription
Content-Typeapplication/json

JSON Type

Body
{ "email": "john@gmail.com", "password": "123456" }
Headers
KeyValueDescription
Content-Typeapplication/json

JSON Type

AuthorizationBearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY0YjQxMGM2NGQ5NDE0NGFmOTdiZTg1OCIsImlhdCI6MTY4OTUyNTE1MSwiZXhwIjoxNjkyMTE3MTUxfQ.ERWtvWieqtfbSU5mpYCbd0aG7v2Fbsl-_stKobDlHQ8
Body
{ "email": "john@gmail.com", "password": "123456" }
Headers
KeyValueDescription
Content-Typeapplication/json

JSON Type

Body
{ "email": "john@gmail.com" }
Headers
KeyValueDescription
Content-Typeapplication/json

JSON Type

Body
{ "password": "123457" }
Headers
KeyValueDescription
Content-Typeapplication/json

JSON Type

Body
{ "email": "john@gmail.com", "name": "John Smith" }
Headers
KeyValueDescription
Content-Typeapplication/json

JSON Type

Body
{ "currentPassword": "123457", "newPassword": "123456" }
Headers
KeyValueDescription
Content-Typeapplication/json

JSON Type

Users 5

CRUD functionalities for users only available to admins.

Headers
KeyValueDescription
Content-Typeapplication/json

JSON Type

Body
{ "name": "Nate Smith", "email": "nate@gmail.com", "password": "123456" }
Headers
KeyValueDescription
Content-Typeapplication/json

JSON Type

Body
{ "name": "Nate Johnson", "email": "nate@gmail.com", "password": "123456" }
Headers
KeyValueDescription
Content-Typeapplication/json

JSON Type

Body
{ "name": "Nate Johnson", "email": "nate@gmail.com", "password": "123456" }