Commit Graph

4 Commits

Author SHA1 Message Date
Kristi Nikolla be10840d86 More sophisticated extension matching
Rewrote the extension matching code to work with variables. Now
using the Routes library.

Change-Id: I361e6e597421bc71ed2cf9ed82516ad8b7bd3a8c
2017-10-25 13:10:49 -04:00
Jeremy Freudberg b23bf3cefa More attributes of flask.request in RequestDetails
To simplify the writing of extensions, and to reduce reliance on
importing the flask.request global object, store pertinent attributes
of flask.request in the RequestDetails class.

Change-Id: Idff737155a6110d0520a74e36a5b0c23b5b5d93c
2017-09-11 19:47:09 +00:00
Leo Tomatsu 06543ccbed RequestDetail
The self.detail is now a class rather than a dictionary.

Change-Id: Ia33583613e91707f16de638023e93899528473e2
2017-08-08 19:28:14 +00:00
Kristi Nikolla 6673e2e6f2 Preliminary extension support + Name routing
This introduces preliminary support for extensions.
Extensions are registered to routes, and if the
request matches the registered route they will be
called to handle the request and the response.
The interface is still not finalized and will
progress as more extensions with their different
requirements are added.

Also included dependency on oslo_serialization for
loading the json response. Follow up patch will
change all instances of json.loads to
jsonutils.loads

Change-Id: I9c573ce1d4ebe85c07c8ff219f384e3c6c67b39a
2017-07-21 16:05:13 -04:00