Web Technologies

Create Asp.Net Core Web API in Visual Studio

In this article we are going to learn about “How to create Asp.Net Core Web API in visual studio”.

Steps to create Web API:

1. Open Visual studio, Select New Project.

2. Select Web application project and then select .Net core project.

3. Select Web API project and click OK.

4. The project created with ValuesController by default , Open the ValuesController.cs file and edit the code with your code.

5. Run the solution, You got the following output for the above code.