Add api for show api version details

Registered by wangxiyuan

Now,there is no api to show api version details in v2. When send a GET request --URL like: http://hostip:9292/v2/, it returned :The resource could not be found.

And in api v1, send a GET request like : http://hostip:9292/v1/, it will return all images' information , not the version details.This bug could be fixed in this bp as well. Because we could add a function in api.versions:Controller to return the details with both v1 and v2. And v3 could also be added there in the future.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
wangxiyuan
Direction:
Needs approval
Assignee:
None
Definition:
Obsolete
Series goal:
None
Implementation:
Unknown
Milestone target:
None
Completed by
wangxiyuan

Related branches

Sprints

Whiteboard

If you don't specify any version, then you will see the version info, like http://127.0.0.1:9292/ So IMHO, if you're passing http://127.0.0.1:9292/v2/ you know what you're doing. I'm OK to support showing a specific version info. But please make sure it won't introduce more maintenance cost. Now we're tracking the version info at glance/api/versions.py --flwang

specs: https://review.openstack.org/#/c/195852/ --wxy

Gerrit topic: https://review.openstack.org/#q,topic:bp/add-version-show-details,n,z

Addressed by: https://review.openstack.org/196575
    Add new function 'show' in version.py

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.