KodeKamper API

KodeKamper is an extensive backend RESTful API service that provide data for consumer to build their own frontend platform. Postman for automated test scenario, we setup repeatable tests which Setup, Test, and ClearUp the requests.


Authentication 8

Routes for user authentication including register, login, reset password, etc

Description

The forgot password link, sends the reset token link to the user’s email that will then take the user to new password form. This token has an expiration time of 10 minutes.

Body
{ "email": "{{User_Email}}" }
Description

Login user via the token and we prevent NoSQL Injection & Sanitize.

Body
{ "email": "[email protected]", "password": "123456" }
Description

Clear token cookie once the user logs out.

Description

Add user to database with encrypted password.

Body
{ "name": "Publisher Account", "email": "[email protected]", "role": "publisher", "password": "123456" }
Description

Reset user password using a token.

Body
{ "password": "Col6PWXdzp58RUOcV" }
Description

Logged in user update/change password.

Body
{ "currentPassword": "{{User_Password}}", "newPassword": "{{User_New_Password}}" }
Description

Update logged in user name and email.

Body
{ "name": "{{User_New_Name}}", "email": "{{User_New_Email}}" }

Bootcamps 7

Fetch all bootcamps from the database. Includes pagination, filtering, etc

Description

Create single bootcamp

Headers
KeyValueDescription
Content-Typeapplication/json

JSON Type

Body
{ "name": "Kodekamper 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://kodekamper.com", "phone": "kodekamper.com", "email": "[email protected]", "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

Get all the bootcamps.

Description

Get bootcamps within the area of your radius of a specific zip-code

Body
Description

Update single bootcamp by ID.

Headers
KeyValueDescription
Content-Typeapplication/json

JSON Type

Body
{ "name": "Test Bootcamp", "address": "45 Upper College Rd Kingston RI 02881", "careers": [ "Data Science", "Business" ] }

Courses 6

Headers
KeyValueDescription
Content-Typeapplication/json

JSON Type

Body
{ "title": "Full Stack Web Dev", "description": "In this course you will learn all about the front end with HTML, CSS and JavaScript. You will master tools like Git and Webpack and also learn C# and ASP.NET with Postgres", "weeks": 10, "tuition": 12000, "minimumSkill": "intermediate", "scholarhipsAvailable": true }
Description

Get Courese for bootcamps

Headers
KeyValueDescription
Content-Typeapplication/json

JSON Type

Description

Get a single course by ID from the courses.

Description

Update single course by ID

Headers
KeyValueDescription
Content-Typeapplication/json

JSON Type

Body
{ "title": "Mind Development TEST", "description": "This course will provide you with all of the essentials to become a successful frontend web developer. You will learn to master HTML, CSS and front end JavaScript, along with tools like Git, VSCode and front end frameworks like Vue", "weeks": 5, "tuition": 4500, "minimumSkill": "beginner", "scholarhipsAvailable": false }

Health Check 2

Here we send GET requests and verify that the response data is correct.

Reviews 6

Description

User or Admin can add reviews to a specific bootcamp.

Body
{ "title": "Was worth the investment", "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec viverra feugiat mauris id viverra. Duis luctus ex sed facilisis ultrices. Curabitur scelerisque bibendum ligula, quis condimentum libero fermentum in. Aenean erat erat, aliquam in purus a, rhoncus hendrerit tellus. Donec accumsan justo in felis consequat sollicitudin. Fusce luctus mattis nunc vitae maximus. Curabitur semper felis eu magna laoreet scelerisque", "rating": "3" }
Description

Get all the reviews of a bootcamp.

Body
{ "title": "Was worth the investment", "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec viverra feugiat mauris id viverra. Duis luctus ex sed facilisis ultrices. Curabitur scelerisque bibendum ligula.", "rating": "5" }

Users 5

CRUD functionality for users only available to admins.

Description

Admin can create a new user.

Headers
KeyValueDescription
Content-Typeapplication/json

JSON Type

Body
{ "name": "Mary Williams", "email": "[email protected]", "role": "publisher", "password": "123456" }
Description

Admin delete user from the database.

Description

Admin get all the users.

Description

Admin update user’s info.

Headers
KeyValueDescription
Content-Typeapplication/json

JSON Type

Body
{ "name": "Jonathon Kunze" }

Available Variables 3

KeyValueType
course_req_body
Review_Body
Course_Body