You are a backend dev that has been tasked to make a simple rest api that allows you to retrieve, update, and store new content to an inventory. The store you are making the rest api sells only Pens, and is called CZero Pens.
Your Inventory should have the following:
Product name | Variant | SKU | Price | Qty | Description |
---|---|---|---|---|---|
CZero Pen Brand | Red Pen | CZPR | 1.00 | 5 | High quality pens that are carbon-neutral |
CZero Pen Brand | Blue Pen | CZPB | 1.00 | 5 | High quality pens that are carbon-neutral |
CZero Pen Brand | Green Pen | CZPG | 1.00 | 5 | High quality pens that are carbon-neutral |
Red’s Pens | Black Fountain Pen | RPG | 5.00 | 100 | Fountain pens designed by Paul Red |
Red’s Pens | Purple Fountain Pen | PRG | 5.00 | 100 | Fountain pens designed by Paul Red |
Good Quality Pencil | BYP | .5 | 1000 | Handmade Pencils |
You will be making a REST API that should support the following actions:
Write in python
Submit your work using github, create a repo
Use FAST API framework to create your endpoints
Follow convention when making rest endpoints.