Now that we have new API skills, we want to create an API to help our favorite store keep track of their inventory. This API will be able to let users add, update, delete, and search for items.
Objectives
Create an API that can CRUD against a Database
practice creating ASP.NET Web API endpoints
practice EF Core.
Requirements
Create a simple API that has a handful of endpoints to manage data
The API should be using Web API Controllers, Ef Core, and Postgres database
Explorer Mode
[ ] Create a new sdg-api project using the dotnet CLI, have fun with the name and what items the shop sells.
[ ] Create a Model of for an item in the shop. This will be your database table structure.
[x] The Item should have at least
[x] Id
[x] SKU
[x] Name
[x] Short description
[x] NumberInStock
[x] Price
[x] DateOrdered
[x] Create a GET endpoint for all items in your inventory
[x] Create a GET endpoint for each item
[x] Create a POST endpoint that allows a client to add an item to the inventory
[x] Create a PUT endpoint that allows a client to update an item
[x] Create a DELETE endpoint that allows a client to delete an item
[x] Create a GET endpoint to get all items that are out of stock
[ ] Create a GET endpoint that allows the to search for an item based on SKU
Adventure Mode
[ ] Create a simple react app that uses your endpoints
Don't lose track!
Now that we have new API skills, we want to create an API to help our favorite store keep track of their inventory. This API will be able to let users add, update, delete, and search for items.
Objectives
Requirements
Explorer Mode
[ ] Create a new
sdg-api
project using the dotnet CLI, have fun with the name and what items the shop sells.[ ] Create a Model of for an item in the shop. This will be your database table structure.
[x] The Item should have at least
[x] Create a GET endpoint for all items in your inventory
[x] Create a GET endpoint for each item
[x] Create a POST endpoint that allows a client to add an item to the inventory
[x] Create a PUT endpoint that allows a client to update an item
[x] Create a DELETE endpoint that allows a client to delete an item
[x] Create a GET endpoint to get all items that are out of stock
[ ] Create a GET endpoint that allows the to search for an item based on SKU
Adventure Mode
Adventure Mode: Take 2