API Documentation

Return to Feroz's Portfolio

Base URL

All API endpoints are available under:

http://django.ferozfaiz.com

Endpoints

GET /

Returns the API documentation page.

GET /employees

Returns a list of up to 500 employees.

GET /employees/:employee_id

Returns the details of a specific employee with the given employee_id.

POST /employees

Creates a new employee with the provided first_name, last_name, and job_title.

Request Body

{ "first_name": "John", "last_name": "Doe", "job_title": "Software Developer" }

PATCH /employees/:employee_id

Updates an existing employee with the given employee_id using the provided first_name, last_name, and job_title.

Request Body

{ "first_name": "John", "last_name": "Doe", "job_title": "Senior Software Developer" }

DELETE /employees/:employee_id

Deletes the employee with the given employee_id.