ASP.NET WebAPI Example

May 18, 2015 at 3:11 PM
Edited May 18, 2015 at 3:12 PM

Do tou have any ASP.NET WebAPI examplet that we can download to better understand a basic WebApplication ?

I am strugling to understande the sample application in the Samples source code.

May 18, 2015 at 6:07 PM
what kind of trouble are you having? It's kind of difficult to help based on 'struggle to understand'. Basically, web unit tests are a working sample of web api implementation. For real app hosted under IIS the only thing you need to do differently is use real HttpConfiguration object (WebHost - based), not SelfHostHttpConfiguration. Also have a look at sample apps in the article on codeproject
  • it shows a full web application that uses web api - based Api controllers on the server to deliver data (as json) to web pages.
May 19, 2015 at 11:22 AM
Edited May 19, 2015 at 11:23 AM
It is not any trouble, it is simply ignorance :)

I look at the examples and it has angular.js and other stuff and as i am new to webapi it confuses me, just that :)

I think that the example on codeproject is helping a little.