Simple RESTful API built with ASP.NET Core 2.2 to show how to create RESTful services using a decoupled, maintainable architecture.
- ASP.NET Core 2.2;
- Entity Framework Core (for data access);
- Entity Framework In-Memory Provider (for testing purposes);
- AutoMapper (for mapping resources and models);
First, install .NET Core 2.2. Then, open the terminal or command prompt at the API root path (/src/Supermarket.API/
) and run the following commands, in sequence:
dotnet restore
dotnet run
Navigate to http://localhost:5000/api/categories
to check if the API is working. If you see a HTTPS security error, just add an exception to see the results.
To test all endpoints, you need to use a software such as Postman.