Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The API demo pages don't work #168

Open
dougthor42 opened this issue Jul 11, 2019 · 0 comments
Open

The API demo pages don't work #168

dougthor42 opened this issue Jul 11, 2019 · 0 comments

Comments

@dougthor42
Copy link
Owner

The API demo pages don't work.

Related to #162.

Looks like the swagger blueprint doesn't get correct URLs. Running an example when URL_ROUTE = '/trendlines' results in this URL being generated:

http://localhost:5000/api/v1/metric

Expected:

http://localhost:5000/trendlines/api/v1/metric

Preliminary investigation shows that setting url_prefix on the route definitions results in those URLs including /trendlines, but then the DispatcherMiddleware steps in and adds another:

http://localhost:5000/trendlines/trendlines/api/v1/metric

So perhaps I should nix the DispatcherMiddleware... it does seem to simply cause problems...

Note: All the above was run using tests/docker-compose.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant