Simple web API using C# using visual Studio 2019. In case you want to download free community version, please visit https://visualstudio.microsoft.com/downloads/ and install it in your PC. 3.
In the Second part, We will see Swagger Documentation for API
In the Third Part, we can see how can we download Sqlite and GUI to effectively manage database locally.
Part 1: RESTful Web API
Create a New project after launching your Visual Studio 2019 as shown below. Select ASP.NET Core Web Application and click Next.
2. Give a name to your project and click next.
3. Ensure .net Core and ASP.NET Core3.1 is selected in the drop down and select API as highlighted below and click Create.
A Default API is provided named weather forecast, you can run and see the data on the URL
Click IIS Express to run the API and you can see data in JSON format.
So now let’s try creating our own API.
Step 1: Add new Folder “Model” in the project as shown below:
What is REST? The REST acronym is defined as a “REpresentational State Transfer” and is designed to take advantage of existing HTTP protocols when used
I’ve been working with Restful APIs for some time now and one thing that I love to do is to talk about APIs.
ＬＩＫＥ | ＣＯＭＭＥＮＴ | ＳＨＡＲＥ | ＳＵＢＳＣＲＩＢＥ In this tutorial, I will discussed about how to consume Web API Get method and display records in the ASP.NET View. Here, ...
ＬＩＫＥ | ＣＯＭＭＥＮＴ | ＳＨＡＲＥ | ＳＵＢＳＣＲＩＢＥ In this tutorial, I will discussed about How to Consume Web API Get method in ASP NET MVC. Blog : http://aspdotnetexplorer...
ＬＩＫＥ | ＣＯＭＭＥＮＴ | ＳＨＡＲＥ | ＳＵＢＳＣＲＩＢＥ In this tutorial, we learned how to consume Web API Get and Post methods in the ASP.NET View. Here, we will see how to con...