Vendor Management API
This repository contains the code for a Vendor Management API designed to handle various vendor-related operations.
API Documentation.
The API endpoints and their functionalities are thoroughly documented using Swagger. You can explore and test the API endpoints interactively using Swagger UI.
To access the API documentation, navigate to http://localhost:8000/api/docs after running the application. This URL will direct you to the Swagger interface where you can find detailed information about each endpoint, request parameters, response formats, and even test the API functionality directly within the interface.
Getting Started
git clone https://github.com/basheeromy/Vendor-management-api.git
move to the cloned directory.
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
pip install -r requirements.dev.txt
here is a way to generate secret key
open terminal.
python3
>>> import secrets
>>> print(secrets.token_urlsafe())
>>> exit()
cd vendor_app
Create .env file in the project root directory.(where settings.py file exists) and paste SECRET_KEY=<secret_key>
( move to the directory which includes manage.py file )python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver
python manage.py test
flake8
Details of Dependencies.
Python version 3.11.6
Framework ~ Django==4.2.7
Access http://localhost:8000/api/docs to explore the API documentation. Feel free to use this API to manage vendors efficiently!