ASP.NET WebAPI Example

May 18, 2015 at 2:11 PM
Edited May 18, 2015 at 2:12 PM
Hello,

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.

Regards
Coordinator
May 18, 2015 at 5: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
http://www.codeproject.com/Articles/879568/VITA-A-Powerful-and-Flexible-ORM-and-Additional-Bu
  • 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 10:22 AM
Edited May 19, 2015 at 10: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.

Thanks.