Adding routes dynamically at runtime

Topics: Web Api
Dec 19, 2011 at 8:55 AM

I need to create a tool where you can dynamically at runtime add new services to a REST service. The users of the tool should be able to select which fields in a database to have returned from a service. They will choose if they want the response as json or xml. Can it be done in wcf? I don’t see how you can add new Routes at runtime and return dynamic objects as json/xml. I know SalesForce are doing something like this, but they probably doesn’t use WCF web api. Take a look at this to see what I mean: http://www.youtube.com/watch?v=nxJnTj4RnzY