harsimran-preet / iVentory

0 stars 0 forks source link

Create Inventory Button to create a new inventory #8

Open ujwal-jain opened 2 years ago

ujwal-jain commented 2 years ago

Estimated - 2.5 hour Actual - 1.5 hour Create a POST /inventory to create a new inventory in the backend. Enter name and description fields in the body.

Create an inventory button that requests a name and description in the UI creates a POST request to backend. Backend should return the new Inventory document created, and also add the created inventory's ID to the User's inventories list.