RESTful Web Services: Different XML Representation for the same resource
- by AlexImmelman
Hi,
I'm developing a REST Web Service using a XML format response and I have some problems (Really, one problem).
One of my resources has some final fields so once they're created, they can't be modified. According to that, I need different representations for this resource depending on what I'm doing: Creating or modifiying it.
What should I do, give to the user different XML-Schemas for the same resource or write just one XML-Schema and read some fields or not depending on the method I'm being requested??
Thanks