<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2015-06-16 18:57 GMT+08:00 Sean Dague <span dir="ltr"><<a href="mailto:sean@dague.net" target="_blank">sean@dague.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 06/15/2015 03:45 PM, Kevin L. Mitchell wrote:<br>
</span><span class="">> On Mon, 2015-06-15 at 13:07 -0400, Jay Pipes wrote:<br>
>> The original spec said that the HTTP header should contain the name of<br>
>> the service type returned by the Keystone service catalog (which is also<br>
>> the official name of the REST API). I don't understand why the spec was<br>
>> changed retroactively and why Nova has been changed to return<br>
>> X-OpenStack-Nova-API-Version instead of X-OpenStack-Compute-API-Version<br>
>> HTTP headers [4].<br>
><br>
> Given the disagreement evinced by the responses to this thread, let me<br>
> ask a question: Would there be any particular problem with using<br>
> "X-OpenStack-API-Version"?<br>
<br>
</span>So, here is my concern with not having the project namespacing at all:<br>
<br>
Our expectation is that services are going to move towards real wsgi on<br>
their API instead of eventlet. Which is, hopefully, naturally going to<br>
give you things like this:<br>
<br>
GET api.server/compute/servers<br>
GET api.server/baremetal/chasis<br>
<br>
In such a world it will end up possibly confusing that<br>
OpenStack-API-Version 2.500 is returned from api.server/compute/servers,<br>
but OpenStack-API-Version 1.200 is returned from<br>
api.server/baremetal/chasis.<br></blockquote><div><br></div><div>Client should get those url from keystone SC, that means client should know what he request to.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
>From an outsider looking in that seems very unexpected.<br>
<br>
So I think we still need service level namespacing on the version header<br>
for clarity of understanding by application writers, by people filing<br>
support tickets, and by people running these services.<br>
<span class="im HOEnZb"><br>
        -Sean<br>
<br>
--<br>
Sean Dague<br>
<a href="http://dague.net" rel="noreferrer" target="_blank">http://dague.net</a><br>
<br>
</span><div class="HOEnZb"><div class="h5">__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</div></div></blockquote></div><br></div></div>