This can also be tested using Postman.
-
Clone the repo https://github.com/gilbertkibet/PizzaMtaaniAPI.git
-
Make sure you have followed the above steps to install .NET 6 and visual studio on your machine
-
Navigate to the .sln file and click on it it will open the solution on visual studio
-
Restore the dependancies
-
Start the application. Navigate to your URL/swagger and you will have the UI documenting the API
you can test the action method by passing the pizza size and charges using the following json payload
[ { "size": "Large", "toppings": [ "Pepperoni", "Cheese" ] }, { "size": "Medium", "toppings": [ "Pepperoni", "Cheese" ] },
{ "size": "Small", "toppings": [ "Pepperoni", "Cheese" ] } ]
GilbertKibet- kibetgilly354@gmail.com