Tag: WebAPI
Building a ASP.NET Web API in Visual Studio 2015
This blog post will explain on how to create a Simple ASP.NET Web API using Microsoft Visual Studio 2015 and return an expose a List (Eg: List<Students>) over HTTP. This includes creating action methods and using them for get all students and get a particular student by id. How to create a Web API in Visual Studio 2015 and return a List over HTTP? Follow…
How to accept HTML Form Data in a ASP.NET Web API Action Method ?
There are times when you might want to create an endpoint in ASP.NET WebAPI that can handle the HTML form data posted as x-www-form-urlencoded. One of the options is to use the model binding concept. In this case , the model should have the names of the keys that are passed in the HTTP request. The MediaFormatters are used to extract the data from…