Giter Site home page Giter Site logo

-vendor-management-system-in-django-and-drf's Introduction

vendor-management-system-django

Develop a Vendor Management System using Django and Django REST Framework.

Prerequisites

  • Python (version 3.10.8)
  • Django (version 4.2.7)

Installation

Create a virtual environment:

python -m venv venv
venv\Scripts\activate

Install dependencies:

pip install -r requirements.txt

Database setup:

python manage.py makemigrations
python manage.py migrate

Usage

1.Start the server:

python manage.py runserver

2.Access API endpoints:

Vendor API: /vendor/

Purchase Order API: /purchase-order/
Historical Performance API: /vendor/historical_performance

After creating user to access token

'/gettoken/' #provide username and password in json eg. { "username":"superuser","password":"superuser" }
I used Postman to test API
once Token is created or received provide it to HEADER
with key as Authorization (eg. key : Authorization) and value as token

API Endpoints

Vendor API
● POST /api/vendors/: Create a new vendor.
● GET /api/vendors/: List all vendors.
● GET /api/vendors/{vendor_id}/: Retrieve a specific vendor's details.
● PUT /api/vendors/{vendor_id}/: Update a vendor's details.
● DELETE /api/vendors/{vendor_id}/: Delete a vendor

● Vendor Performance Endpoint (GET /api/vendors/{vendor_id}/performance)

Purchase Order API
● POST /api/purchase_orders/: Create a purchase order.
● GET /api/purchase_orders/: List all purchase orders with an option to filter by vendor.
● GET /api/purchase_orders/{po_id}/: Retrieve details of a specific purchase order.
● PUT /api/purchase_orders/{po_id}/: Update a purchase order.
● DELETE /api/purchase_orders/{po_id}/: Delete a purchase order

Vendor Performance Evaluation
● GET /api/vendors/{vendor_id}/performance: Retrieve a vendor's performance metrics

Historical Performance API
GET /vendor/historical_performance: List historical performance for all vendors.
GET /vendor/historical_performance/{id}/: Retrieve historical performance for a specific vendor.

Update Acknowledgment Endpoint:
● While not explicitly detailed in the previous sections, consider an endpoint like
POST /api/purchase_orders/{po_id}/acknowledge for vendors to acknowledge POs.
● This endpoint will update acknowledgment_date and trigger the recalculationof average_response_time

-vendor-management-system-in-django-and-drf's People

Contributors

ainy07 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.