Geeks With Blogs

News This is the *old* blog. The new one is at
Elton Stoneman
This is the *old* blog. The new one is at
REST REpresentationl State Transfer
Versioning in WebAPI using Route Constraints
I had an interesting problem with API versioning. The API behaviour for a given resource was going to change between version 1.x and 1.y, but the controller logic was going to stay the same. Usually when your behaviour changes it's a big enough change that you need a new controller and you can direct the request appropriately - either using a version number in the route, or (my preference) with a version in the request header and a custom IHttpControllerSelector. But in this case the business logic ......

Posted On Thursday, December 18, 2014 9:07 AM

Out now:, tools for building better REST APIs
This is a resource that I hope you find useful – it’s the tools I use every day to help me deliver REST APIs more quickly and with higher quality: Essential Rest Tools It’s linked to my latest Pluralsight course, Five Essential Tools for Building REST APIs, and I’ll be keeping the site up to date as new tools or types of tool emerge. The site lists the best tools I’ve found for different parts of REST API delivery, and briefly covers their plus and minus points: Design Testing Debugging HTTP* Load ......

Posted On Monday, December 8, 2014 9:46 AM

Five Essential Tools for Building REST APIs
My latest Pluralsight course has just been released: Five Essential Tools for Building REST APIs I adopted REST APIs in preference to Web Services early in 2010 and the tools available for delivering REST have massively improved in the last few years. This course is all about the tools I use now, where they fit in the delivery process, and what they can do to help you build better APIs, more quickly and with higher quality. REST APIs are refreshingly cross-platform, and so are all the tools in the ......

Posted On Tuesday, December 2, 2014 4:25 AM

Welcome to, a REST API with badly-behaved endpoints
I've had a need in a few projects for a REST API that doesn't behave well - takes a long time to respond, or never responds, returns unexpected status codes etc.That can be very useful for testing that clients cope gracefully with unexpected responses.Till now I've always coded a stub API in the project and run it locally, but I've put a few 'misbehaved' endpoints together and published them at, and the source is on GitHub here: sixeyed/ can browse to the home page and ......

Posted On Thursday, August 14, 2014 10:48 PM

How about a new platform for your next API… a CMS?
Say what? I’m seeing a type of API emerge which serves static or long-lived resources, which are mostly read-only and have a controlled process to update the data that gets served. Think of something like an app configuration API, where you want a central location for changeable settings. You could use this server side to store database connection strings and keep all your instances in sync, or it could be used client side to push changes out to all users (and potentially driving A/B or MVT testing). ......

Posted On Thursday, May 22, 2014 8:02 AM

Non-Microsoft Technologies Which Microsoft is Embracing
Thanks to everyone who came along to the UK Connected Systems User Group meeting in London tonight. My session was on non-Microsoft technologies which Microsoft is embracing, either through supporting platforms, partnering with other providers or incorporating into the Azure platform and the .NET tooling. We covered a lot of ground: JSON overview; support in WCF and WebAPI; JSON.NET JavaScript overview; IntelliSense in Visual Studio; TypeScript NoSQL overview; using MongoDB with Azure and MongoLab ......

Posted On Wednesday, April 17, 2013 11:13 PM

Integration Patterns with Azure Service Bus Relay, Part 3: Anonymous partial-trust consumer

IPASBR Part 3 - securely consuming on-premise services through RESTful HTTP calls to Azure

Posted On Thursday, October 4, 2012 10:12 PM

Integration Patterns with Azure Service Bus Relay, Part 1: Exposing the on-premise service

Part 1 of a series on Azure Service Bus Relay for exposing on-premise services and consuming them with different clients.

Posted On Wednesday, September 19, 2012 9:53 PM

WCF REST Error Handler

Sample WCF error handler on GitHub which returns correct 500/400 HTTP status codes for unhandled exceptions

Posted On Wednesday, May 30, 2012 9:17 PM

Copyright © Elton Stoneman | Powered by: