What is cooking here?

In the previous section, you saw an imaginary scenario and went through an SQL injection in action. Let’s look at an actual example by creating a RESTful product API using ASP.NET Core 2.0. Before you start building this application, bear in mind the following prerequisites for this application:

  • Visual Studio 2017 update 3 or later
  • ASP.NET Core 2.0 or later
  • C#7.0 or later
  • Microsoft Entity Framework Core 2.0.0

Go through the following steps to create our application:

  1. Open Visual Studio.
  2. Select File | New | Project or press Ctrl + Shift + F5.
  3. Select ASP.NET Core Web Application.
  4. From the template window, select ASP.NET Core API. Make sure you select .NET Core 2.0.
  5. Name the project, choose the path for the solution, ...

Get Building RESTful Web Services with .NET Core now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.