Git Product home page Git Product logo

vendor-management-system's Introduction


Vendor Management System API

This is a RESTful API in Django Rest Framework for a vendor management system. This system will handle vendor profiles, track purchase orders, and calculate vendor performance metrics.

Table of Contents

Features

  • Create, read, update, and delete vendor profiles.
  • Create, read, update, and delete purchase orders.
  • Retrieve vendor performance metrics.

Setup

  1. Clone the repository:

    git clone https://github.com/your-username/vendor-management-system.git
  2. Install dependencies:

    cd vendor-management-system
    pip install -r requirements.txt
  3. Run migrations:

    python manage.py migrate
  4. Create a superuser:

    python manage.py createsuperuser
  5. Run the development server:

    python manage.py runserver
  6. Access the API:

    Open your browser and go to http://localhost:8000/api/ to view the browsable API.

API Endpoints

1. Vendor Profile Management

  • POST /api/vendors/

    Create a new vendor.

  • GET /api/vendors/

    List all vendors.

  • GET /api/vendors/{vendor_id}/

    Retrieve details of a specific vendor.

  • PUT /api/vendors/{vendor_id}/

    Update a vendor's details.

  • DELETE /api/vendors/{vendor_id}/

    Delete a vendor.

2. Purchase Order Tracking

  • POST /api/purchase_orders/

    Create a new purchase order.

  • GET /api/purchase_orders/

    List all purchase orders. You can filter by vendor using query parameters.

  • 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.

  • POST /api/purchase_orders/{po_id}/acknowledge

    Acknowledge a purchase order.

3. Vendor Performance

  • GET /api/vendors/{vendor_id}/performance/

    Retrieve calculated performance metrics for a specific vendor.

Usage

To use the API endpoints, you can use tools like Postman or send HTTP requests using any programming language.

Here's an example using Postman: Screenshot 2024-04-29 134210

Testing

To run tests, use the following command:

python manage.py test

vendor-management-system's People

Contributors

mohd-daniyal 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.