How I Wrapped an API

In my day-to-day, I primarily maintain a web API. It’s had limited consumers, but we’re now centralizing a lot of functionality there. The problem we encountered was that only a limited number of developers on the team had experience with RESTful services, or even calling things in general over HTTP from .NET. This post is about the library I created for a team whose primary focus is a Windows Forms app to enable them to interact with our web API using a more familiar paradigm.

You can dive right into the code here on my github.

Read More

Windows Authentication and Web API 2

I've recently had a situation come up at work where I need to protect our ASP.NET Web API 2 deployment with Windows Authentication.  We run our web client through Chrome and IE and we needed the NTLM negotiation to be handled gracefully.  There are a few things that we had to put in place to get this to go.  Here they are in list form.  The code for both the problem and the solution is here on my github.

Read More