Skip to content

Create simple API to access locations of adopted drains #236

@jasonlally

Description

@jasonlally

Use case: users want to have ad hoc access to what specific drains are adopted so they can map them or integrate them with other data.

Proposed acceptance criteria

  • Admin user can access adopted drains at a single endpoint like https://adoptadrain.sfwater.org/api/drains/adopted
  • Data returns in json or csv based on parameter something like ?format=csv, default json
  • Endpoint returns only the latitude, longitude and City ID (prepended with N-), no adopter information
  • Basic authentication allows only users with admin roles on the platform to access the endpoint

Notes
Trying to keep this as narrowly scoped as possible to be simple but still useful. We could do other api methods, but this seems to be a valuable export option that doesn't introduce complex authentication scenarios.

cc/ @jeanwalshie @jafowler49 @jszwedko

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions