-
The other night I had the opportunity to head down to Columiba SC to speak at their Enterprise Guild about Web API. First I would like to thank everyone who showed up, I had a great time and I hope everyone found the information useful. Below is the content from the session: Slides IISHosted Self Host...
-
When working on a demo application recently I was trying to get an ajax call to hit one of my Web API routes and I was immediately hit with the following exception. XMLHttpRequest cannot load http://localhost:33884/api/ToDo/ . Origin http://localhost:3462 is not allowed by Access-Control-Allow-Orig Of...
-
As I was breaking out some of my MVC controllers to use Web Api I ran into a not so fun error (seen below) when doing a jQuery Post. I was trying to post a model via jQuery to my Web Api Endpoint and it was failing and it made no sense because when I used Postman via Chrome it would work just fine. ...
-
I am working on a project which is using Knockout.js to give us MVVM style binding between our data model (view model) and our views. We are also MVC4 and Web API . This means that my ViewModels will be making calls in to our Web API endpoints to get json back. When we receive this...
-
If you use WebApi with the Asp.Net MVC framework you may not realize that there is some ‘magic’ that takes place under the hood to convert the over the wire data from Json into an object. You may not realize this because by default it ‘just works’, which is exactly what I want and what a framework...
-
In my prior post I walked you though how to setup WebApi in a self hosted environment. In this post we will take a look at how to consume a WebApi endpoint. We will do this by using the code from the prior example as well as by creating a new console application. Before we get started you are going...
-
So #AspNetWebAPI has finally reach beta and I finally have gotten off my a$$ and starting playing around with it. Sure I have read the info on line, I have sat through numerous sessions where it was being taught and all along I have been telling myself ‘this stuff kicks ass’ but I just not have...