Michael Our new wcf web apis support multiple representations out of the box with very little friction. You might want to check it out.
Glenn On Sun, Feb 6, 2011 at 9:28 PM, Michael Ibarra <[email protected]> wrote: > I'd be interested to hear more. > > I'm toying with something like you've described, only bypassing the MVC > layer altogether and finding it a bit more involved than I think it should > be. > > Thanks, > > Mike > > On Feb 6, 2011 9:04 PM, "Glenn Block" <[email protected]> wrote: > > Hello folks (Ignore this is if you saw it on another list :-) ) > > We're looking to understand how many folks using MVC are really interested > in more support for building web apis that are consumed by a multitude of > clients. > > When I say REST in this sense, I don't simply mean returning a JsonResult, > rather I mean supporting multiple media types like OData, Json, Xml, and say > Atom all from an MVC controller where the client uses content negotiation / > accept headers to specify their preferences. Some of these media types might > also use hypermedia constraints in the representation to allow clients to do > distributed workflows (If hypermedia sounds like complete techno jibberish, > don't worry about it :-) ).I am also talking about other HTTP concerns like > generating ETags / supporting conditional GET and PUT. > > All of this IS achievable today in MVC, but you have to do a bunch of work > like for conneg. > > My question is how many of you ARE doing it today, or want to do it but it > is too painful? > > Thanks > Glenn > > -- > You received this message because you are subscribed to the Google Groups > "Seattle area Alt.Net" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/altnetseattle?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Seattle area Alt.Net" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/altnetseattle?hl=en. > -- You received this message because you are subscribed to the Google Groups "Seattle area Alt.Net" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/altnetseattle?hl=en.
