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.
The URL of the
regionsAPI 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__.pyto better separate the handling of the/api/watershedand/api/healthAPIs from the main '/api' APIs.