<br><br>> Is media type the preferred model for versioning rather than URL? <br><br>Well I guess the answer might be influenced by the choice between a single over-arching media type and many fine-grained types. Because if the former, then specifying the version in the Content-Type would imply the versions of all fine-grained types are rev'd in lock-step. Which may potentially be awkward to maintain.<br>
<br>> I
could also see /v1/xxxx and /v2/xxxx as means of supporting
incompatible versions.<br>
<br>Might this approach lead to a higher likelihood of knowledge of the URI structure leaking out to the client side?<br><br>Cheers,<br>Eoghan<br><br><br><div class="gmail_quote">On 15 April 2010 13:26, Bryan Kearney <span dir="ltr"><<a href="mailto:bkearney@redhat.com">bkearney@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On 04/15/2010 08:21 AM, Eoghan Glynn wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
 > A single media type to describe all documents returned by the API<br>
<br>
Interesting question.<br>
<br>
My initial reaction is that the single<br>
application/vnd.com.redhat.rhevm.api+xml media type may indeed be better<br>
than a proliferation of more fine-grained types, as really what we're<br>
trying to capture here is the "application protocol", which could be<br>
thought of in a holistic sense as applying to the entire API.<br>
<br>
Whereas the individual fine-grained type could be inferred from the<br>
entity-body in any case, from say the schema identified in the root<br>
xmlns attribute or whatever. So this doesn't need to be necessarily<br>
specified in the Content-Type header.<br>
<br>
A single media type may well be easier to standardize also, if we ever<br>
need to evolve it out of the vendor-private space.<br>
<br>
</blockquote>
<br></div>
Is media type the preferred model for versioning rather than URL? I could also see /v1/xxxx and /v2/xxxx as means of supporting incompatible versions.<br><font color="#888888">
<br>
-- bk<br>
</font></blockquote></div><br>