Skip to content

sajjadali-fullstack/rest-api-employee-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Employee API (DRF)

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.


🚀 Features

  • 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

🛠️ Tech Stack

  • Backend:
      

  • Database:


  • Django
  • Django REST Framework
  • Python

📊 Employee Fields

  • emp_id
  • first_name
  • last_name
  • email
  • department
  • designation
  • salary
  • joining_date
  • City
  • Address

🧠 Concepts I Learned

Django & DRF Basics

  • Django Models
  • Django REST Framework Serializers
  • JSON Parsing & Rendering
  • Request & Response Handling
  • Working with JSON Data
  • Class-Based Views (CBV)

HTTP Methods

Method Description
GET Retrieve employee data
POST Create new employee
PUT Update existing employee
DELETE Remove employee record

📚 What I Practiced

  • Serializer Validation
  • Field Level Validation
  • Object Level Validation
  • Partial Updates in DRF

📂 Project Purpose

This project was built for learning and practicing Django REST Framework concepts with real-world API structure and validation handling.


👨‍💻 Author

Sajjad Ali

🤝 Connect with Me

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:"

  • LinkedIn:
    LinkedIn

  • Gmail:
    Gmail


💖 Support & Usage

If you find this project helpful or plan to use it as a template for your learning, please consider:

  1. Giving it a Star ⭐
  2. Giving credit to the original author means me Your Sajju 🔥✨

🔧 Setup Instructions

# 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

About

A Django REST Framework based Employee Management API supporting serialization, model instances, CRUD operations, field-level validation, object-level validation, and partial updates with structured employee data handling.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors