/icecream-shop-api

Code for an Icecream Shop's REST API, containing some example vulnerabilities for educational purposes.

Primary LanguageC#

Icecream Shop API

Icecream Shop API

Code for an Icecream Shop's REST API, containing some example vulnerabilities for educational purposes.

Getting started

Follow steps 1-3 to get started.

Step 1

dotnet restore

Step 2

If you don't have the EF core tools, run:

dotnet tool install -g dotnet-ef --version 7.0.0

Then (or straightaway if you already have the tools), run:

Note: You may need to close and then re-open Visual Studio Code before running the next command.

dotnet ef database update

Step 3

dotnet run

Step 4

Navigate to http://localhost:5001 to view the Swagger (interactive documentation for the API).

Use the Seed endpoint to seed the database and then experiment with the different endpoints. Try to relate what is returned back to the code.

Notes