What would you say to be the best approach when designing a web service that is supposed to return different representations (such as JSON, XML) of the same data.
The requirement would be to have the business logic completely separated from the part that writes the actual XML/JSON response, depending on the "Accept" header received in the HTTP request.
I figure this is a common problem which many web services have. Any tips/design patterns/wikis/projects you could help me with?
No comments:
Post a Comment