Public
Documentation Settings

devCamper API

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

AUTHORIZATIONBearer Token
Token

Bootcamps

Bootcamps CRUD functionality

AUTHORIZATIONBearer Token
This folder is using Bearer Token from collectiondevCamper API

GETGet all bootcamps

localhost:3000/bootcamps?limit=2&page=1

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

PARAMS
limit

2

page

1

Example Request
curl
curl --location 'localhost:3000/bootcamps?limit=2&page=1'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers

POSTCreate new bootcamp

localhost:3000/bootcamps

Make new bootcamp

AUTHORIZATIONBearer Token
This request is using Bearer Token from collectiondevCamper API
Bodyraw (json)
json
{
		"name": "Devworks Bootcamp 2",
		"description": "Devworks is a full stack JavaScript Bootcamp located in the heart of Boston that focuses on the technologies you need to get a high paying job as a web developer",
		"website": "https://devworkws.com",
		"phone": "(111) 111-1111",
		"email": "enroll@devworks.com",
		"address": "233 Bay State Rd Boston MA 02215",
		"careers": ["Web Development", "UI/UX", "Business"],
		"housing": true,
		"jobAssistance": true,
		"jobGuarantee": false,
		"acceptGi": true
}
Example Request
curl
curl --location 'localhost:3000/bootcamps' \
--data-raw '{
		"name": "Devworks Bootcamp 2",
		"description": "Devworks is a full stack JavaScript Bootcamp located in the heart of Boston that focuses on the technologies you need to get a high paying job as a web developer",
		"website": "https://devworkws.com",
		"phone": "(111) 111-1111",
		"email": "enroll@devworks.com",
		"address": "233 Bay State Rd Boston MA 02215",
		"careers": ["Web Development", "UI/UX", "Business"],
		"housing": true,
		"jobAssistance": true,
		"jobGuarantee": false,
		"acceptGi": true
}'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers

PATCHUpdate a bootcamp

localhost:3000/bootcamps/5ec8e4a17ba0382910e3af19
AUTHORIZATIONBearer Token
This request is using Bearer Token from collectiondevCamper API
Bodyraw (json)
json
{
	"housing": true
}
Example Request
curl
curl --location --request PATCH 'localhost:3000/bootcamps/5ec8e4a17ba0382910e3af19' \
--data '{
	"housing": true
}'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers