diff options
author | Lakshmi N Sampath <lakshmi.sampath@hp.com> | 2015-04-01 08:38:15 -0700 |
---|---|---|
committer | Nikhil Komawar <nikhilskomawar@gmail.com> | 2015-04-23 16:38:18 -0400 |
commit | e1e3c76392245da912f14b26cf2a585b37c5feb1 (patch) | |
tree | b155279abc440bc0fec3467aa8d08d7aab6c8024 /glance/search/api/v0_1/router.py | |
parent | e3bed85d5123764dfa25059bba31acbf5fa9c035 (diff) | |
download | glance-e1e3c76392245da912f14b26cf2a585b37c5feb1.tar.gz |
Plugin types are not exposed to the client.
Glance Search clients currently don't have
anyway to know what "types" are available.
Search clients need to know the "type" to
include in the search request for the
particular resource.
Backport change:-
Has been cherry picked from
commit d6d5c501c16ed7df64944f6646ad32aca345adcd
Change-Id: I8baed7c5183752b1f52f8050ce321aacec701f1c
Closes-Bug: #1439061
Diffstat (limited to 'glance/search/api/v0_1/router.py')
-rwxr-xr-x | glance/search/api/v0_1/router.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/glance/search/api/v0_1/router.py b/glance/search/api/v0_1/router.py index ad0462a6f..1f08b33b4 100755 --- a/glance/search/api/v0_1/router.py +++ b/glance/search/api/v0_1/router.py @@ -41,6 +41,17 @@ class API(wsgi.Router): conditions={'method': ['PUT', 'DELETE', 'PATCH', 'HEAD']}) + mapper.connect('/search/plugins', + controller=search_catalog_resource, + action='plugins_info', + conditions={'method': ['GET']}) + mapper.connect('/search/plugins', + controller=reject_method_resource, + action='reject', + allowed_methods='GET', + conditions={'method': ['POST', 'PUT', 'DELETE', + 'PATCH', 'HEAD']}) + mapper.connect('/index', controller=search_catalog_resource, action='index', |