A web application that helps store owners manage sales and product inventory records by allowing them to CREATE sale orders and products, FETCH all sales and products and RETRIEVE a single sale order and product.
What you need to run this API.
- Python 3.
- Virtualenv environment.
- Postman.
How to get your development environment running.
- Clone the repository.
- Unzip the files to your preferred location.
- cd into sore-manager-api then api folder.
- Install a virtual environment
pip install virtualenv venv
- Install the requirements.txt
pip install -r requierments.txt
- Install Postman.
cd into store-manager-api-->api
RUN python run.py
.
key: Content-Type value: application/json
To test authentication, add this to the header: Get Token from login endpoint
key: Authorization value: JWT TOKEN
Methods | Endpoint | Action |
---|---|---|
GET | http://127.0.0.1:5000/v1/sales | (get all your sales) |
POST | http://127.0.0.1:5000/v1/sales | (create a sale order) |
GET | http://127.0.0.1:5000/v1/sales/id | (get a single sale order by id) |
GET | http://127.0.0.1:5000/v1/products | (get all your products) |
POST | http://127.0.0.1:5000/v1/products | (create a product) |
GET | http://127.0.0.1:5000/v1/products/id | (get a single product by id) |
Gabriel Machel - Twitter
- Fork it
yourname/yourproject/fork
- Create your feature branch
git checkout -b feature/fooBar
- Commit your changes
git commit -m 'Add some fooBar'
- Push to the branch
git push origin feature/fooBar
- Create a new Pull Request