This project is a simple Employee Management REST API built using Django and Django REST Framework.
It demonstrates how to work with serializers, models, and basic API structure for handling employee data.
- Employee CRUD API (Create, Read, Update, Delete)
- Django REST Framework serializers
- JSON-based API responses
- Model-driven architecture
- Class-Based Views (CBV)
- Lightweight and extensible structure
- Field Level Validation
- Object Level Validation
- Partial Update Support
- Lightweight and extensible structure
- Django
- Django REST Framework
- Python
- emp_id
- first_name
- last_name
- department
- designation
- salary
- joining_date
- City
- Address
- Django Models
- Django REST Framework Serializers
- JSON Parsing & Rendering
- Request & Response Handling
- Working with JSON Data
- Class-Based Views (CBV)
| Method | Description |
|---|---|
| GET | Retrieve employee data |
| POST | Create new employee |
| PUT | Update existing employee |
| DELETE | Remove employee record |
- Serializer Validation
- Field Level Validation
- Object Level Validation
- Partial Updates in DRF
This project was built for learning and practicing Django REST Framework concepts with real-world API structure and validation handling.
Sajjad Ali
Agar aapke paas koi sawal hai ya aap connect karna chahte hain, toh aap mujhe niche diye gaye platforms par reach out kar sakte hain:
If you have any questions or would like to connect, feel free to reach out to me on the platforms below:"
If you find this project helpful or plan to use it as a template for your learning, please consider:
- Giving it a Star ⭐
- Giving credit to the original author means me Your Sajju 🔥✨
# Clone repository
git clone https://github.com/sajjadali-fullstack/rest-api-employee-system.git
# Download
pip install requests
# Go to project directory
cd withRest1
# Install dependencies
pip install django djangorestframework
# Run server
python manage.py runserver