Skip to content

"Extra" nonfunctional API endpoint #136

Description

@corviday

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions