delivery of different mime REST requests

Hi there,

is it true that I have to use different controllers for different mime types. E.g. I want to implement a REST Service to get XML or JSON deliveries I have to implement a own controller and could not use the controller where I have implemented for providing a record on the web?

Or is there a way to use one controller for alle requests, getting XML, JSON and HTML?

Thx for your help in advance.

Greetz Uli

yes you have to setup a separate controller for each format, you can use one of the existing ext should be pretty straight forward

Technically you can use ContentNegotiator filter.

@orey i think he is using 1.1

Then it’s a wrong forum, this is 2.0 thread.