This was created using the MS Learn tut. https://docs.microsoft.com/en-us/learn/paths/build-dotnet-applications-csharp/
run dotnet run
to start the API. This will also give you the ports used.
may need to run dotnet buld
if it fails.
Go to https://localhost:7240/pizza
replace 7240 with your port to view in a webpage to see the pizzas.
run httprepl https://localhost:7240
(replace 7240 with your port) in a new terminal. This will start a repl. Commands such as cd and ls work as expected. ls will also list CRUD.
- get:
get
- getID:
get 2
- post:
post -c "{"name":"Hawaii", "isGlutenFree":false}"
- put:
put 3 -c "{"id": 3, "name":"Hawaiian", "isGlutenFree":false}"
- delete:
delete 3