[openstack-dev] [nova] Trailing Slashes on URLs

Shoham Peller shoham.peller at stratoscale.com
Tue Mar 22 16:34:40 UTC 2016


Hi,

Nova-api behaves different whether a trailing-slash is given in the URL or
not.
These 2 requests produce different results:

   - GET /v2/{tenant-id}/servers - gets a list of servers
   - GET /v2/{tenant-id}/servers/ - gets an info for a server with an
   "empty id" - produces 404

IMHO, a trailing slash in REST requests should be ignored.

A few resources about REST and trailing slashes:
http://programmers.stackexchange.com/questions/186959/trailing-slash-in-restful-api
https://github.com/nicolaiarocci/eve/issues/118

What do you think of this issue?
Is this difference in behavior is on purpose?

Thanks,
Shoham
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160322/094855a5/attachment.html>


More information about the OpenStack-dev mailing list