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

"Extra" nonfunctional API endpoint #136

Open
corviday opened this issue May 11, 2020 · 0 comments
Open

"Extra" nonfunctional API endpoint #136

corviday opened this issue May 11, 2020 · 0 comments

Comments

@corviday
Copy link
Contributor

The URL of the regions API is supposed to be /api/health/regions. That URL works correctly.

However, calls made to /api/regions, an unintended URL, will also be resolved, but not entirely correctly: the summary data for each region will be correct, but the URL attribute leading to more detailed information on the region will be incorrect.

I think the right fix for this is to rewrite the routing code in ce/api/__init__.py to better separate the handling of the /api/watershed and /api/health APIs from the main '/api' APIs.

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