views:

197

answers:

2

Does ASP.NET MVC have anything like the RESTful out-of-the-box features like Ruby on Rails 2.0?
For example: cURL and Your Rails 2 App

I think this is the built in REST access to your Models. Since models can be implemented in different ways in ASP.NET MVC is there a feature like this?

+1  A: 

I think the closest you'll come to this that I know of right now is some of the work Rob Conery is doing like this:

http://blog.wekeroad.com/blog/subsonic-mvc-scaffold-addin/

It's not exactly what you're asking for, but it provides what you want via scaffolding instead of the cURL type implementation.

CubanX
+1 - I have been meaning to give SubSonic another shot. Its been at least 2 years since the last time I looked at it.
tyndall
+1  A: 

Inside the MvcContrib open source project there is a class called SimplyRestfulRouteHandler. Using this class you can add routes to your site that will follow the REST approach.

Here is a good post on how you can use it.

Dale Ragan