DEV Community


Posted on • Updated on


AspNet Core Web API Basics to Advanced Part1

What is Web API.
API stands for Application Programming Interface, which in simple terms allows two applications to talk to each other.
AspNet Core Web API

ASP.NET Web API is Microsoft .Net framework for building HTTP services that can be accessed from any client such as browsers, desktop applications and mobile devices. ASP.NET Web API can be used to build both RESTful and SOAP services.

ASP.NET Web API Core ASP.NET Core is an open-source, cross-platform framework for building modern, cloud-based web apps and we can chose whatever platforms we want to build them on. We can build and run ASP.Net Core applications on Windows, macOS or Linux. Some of the benefits we get when working with ASP.Net core are:

  1. It is a cloud-ready.
  2. Comes with Built-in dependency injection.
  3. Very lightweight.
  4. High-performance and modular HTTP request pipeline.
  5. We can host ASP.Net Core applications on IIS, Nginx, Apache and Docker.

Let us build our first Web API in ASP.NET Core5
To build a project select create a new project.
AspNet Core Web API

Select ASP.NET Core Web API
AspNet Core Web API

Select where we want to save it.
AspNet Core Web API

For the last step, select additional information. I am leaving everything as default but in future series we will investigate other options.
AspNet Core Web API

Now build and compile your Web API and you should see your WeatherForecast Endpoint.
AspNet Core Web API

AspNet Core Web API Part 2 Database Context >>

Top comments (0)

50 CLI Tools You Can't Live Without

>> Check out this classic DEV post <<