Giter Club home page Giter Club logo

vendor_management's Introduction

Vendor Management USING DJANGO REST FRAMEWORK

SETUP

-  CREATE VIRTUAL ENVIROMENT USING - 
        python -m venv env
        activate virtualenv- Scripts/activate (for windows)
                             source bin/activate(Linux)

STEP2 - 
    CLONE FROM GITHUB OR DOWNLOAD ZIP
    - NAVIGATE TO BLOG APPLICATION USING TERMINAL
    - RUN COMMAND TO INSTALL REQUIREMENTS
            pip install -r requirements.txt

For Testing user can import POSTMAN Collection

OR USER CAN DIRECTLY IMPORT Vendor Management.postman_collection.json in Postman

RUN MIGRATIONS

run command to migrate database
    - python manage.py migrate

DETAILS AND API DESCRIPTIONS

-- PROJECT CONTAIN ONE APP 
    "vendorProfile" - for Authentication and all APIs 
    

-- Authentications is done using jwt token based authentications

User Authentication and Register

-- REGISTER:(POST REQUEST)
    http://127.0.0.1:8000/api/register/ 

-- LOGIN:
    http://127.0.0.1:8000/api/login

    OUTPUT- IT GIVES TWO VALUES ONE IS ACCESS TOKEN AND ANOTHER IS REFERESH TOKEN
    // WITHOUT ACCESS TOKEN USER NOT ABLE TO ACCESS ANY API'S

-- REFERESH : 

Data api's

# FOR PUT AND POST REQUEST BODY FORMAT AND DATA PRESNAT IN JSON COLLECTION  

1- VendorProfile GET and POST requests
    
    http://127.0.0.1:8000/api/vendors 

    GET Request output -- List of all vendors
    POST Request- 
                Send this parameter in Body
                {
                    "name":"name value",
                    "contract_details:"",
                    "address":"",
                    "vendor_code":"" // it must be unique
                }


 #output contains details with likes and likes count

2 - for update ,delete and getting specific Vendor detail api url-

    http://127.0.0.1:8000/api/vendors/<int:vendor_id>


3.- PurchaseOrder GET and POST request

     http://127.0.0.1:8000/api/purchase_orders/

4 - for update ,delete and getting specific "PurchaseOrder" api url

     http://127.0.0.1:8000/api/purchase_orders/<int:po_id>

5 - Get Performance Matrics of specific Vendor

    http://127.0.0.1:8000/vendors/<int:vendor_id>/performance

    OUTPUT - returns four performance parameter

6 - Achnowledgment api - user to take consideration of vendor for purchase order-POST

    http://127.0.0.1:8000/purchase_order/<int:po_id>/achnowledgment


7 - History or log of vendor perfomance matrics- GET request only

    http://127.0.0.1:8000/vendor/performance/<int:vendor_id>/log

vendor_management's People

Contributors

aj-ethan 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.