Merge "Move the note about '/os-volume_boot' to the correct place"

This commit is contained in:
Jenkins 2017-07-26 23:44:48 +00:00 committed by Gerrit Code Review
commit bf0a5bc485
1 changed files with 2 additions and 2 deletions

View File

@ -404,8 +404,6 @@ volumes_controller = functools.partial(_create_controller,
# should be in the front of '/servers/{id}', otherwise the request to
# '/servers/detail' always matches to '/servers/{id}' as the id is 'detail'.
ROUTE_LIST = (
# NOTE: '/os-volumes_boot' is a clone of '/servers'. We may want to
# deprecate it in the future.
# NOTE: This is a redirection from '' to '/'. The request to the '/v2.1'
# or '/2.0' without the ending '/' will get a response with status code
# '302' returned.
@ -757,6 +755,8 @@ ROUTE_LIST = (
'GET': [volumes_controller, 'show'],
'DELETE': [volumes_controller, 'delete']
}),
# NOTE: '/os-volumes_boot' is a clone of '/servers'. We may want to
# deprecate it in the future.
('/os-volumes_boot', {
'GET': [server_controller, 'index'],
'POST': [server_controller, 'create']