storyboard/storyboard
Michael Krotscheck 447ae50497 Redirect Browsers from API to Client
This middleware will automatically redirect any clients that
express a desire for text/html content away from the API and to
the configured webclient. It assumes that the webclient will have
an identical URL structure after the API root, or have sane 404
handling.

This feature is being added to simplify generating a URL in email.
We point the user at the API, and the API will redirect the user
to the appropriate location. If, instead, the client sends a
different accept header, then this will not trigger and return
the raw data instead.

Example:

GET https://storyboard.openstack.org/api/v1/projects
303 https://storyboard.openstack.org/#!/projects

Future work on this feature will intelligently check for search
engine bots, and return a scrapeable html page for SEO.

Change-Id: Id98e12f85ce1523ab3982d070c438583d51ce9cb
2015-05-08 11:34:38 -07:00
..
api Redirect Browsers from API to Client 2015-05-08 11:34:38 -07:00
common Added story types 2015-03-30 14:34:35 +03:00
db Added session parameter to various db_api methods. 2015-04-21 15:32:34 -07:00
migrate Fixed import 2015-03-30 10:13:24 -07:00
notifications Every worker now gets its own session. 2015-04-22 16:21:24 -07:00
openstack Added oslo.utils to requirements 2015-01-23 12:38:16 +03:00
plugin Email Send Cron Worker 2015-05-08 11:34:32 -07:00
tests Redirect Browsers from API to Client 2015-05-08 11:34:38 -07:00
__init__.py Add SQLalchemy database model 2014-01-13 18:52:47 +04:00