RESTful Web Services: Different XML Representation for the same resource

Posted by AlexImmelman on Stack Overflow See other posts from Stack Overflow or by AlexImmelman
Published on 2010-06-17T10:43:04Z Indexed on 2010/06/17 12:53 UTC
Read the original article Hit count: 512

Filed under:
|
|
|
|

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

© Stack Overflow or respective owner

Related posts about Xml

Related posts about rest