Skip to content

Add support for new Stop Search API #145

@aaronbrethorst

Description

@aaronbrethorst

You can learn about the stop search API here: https://developer.onebusaway.org/api/where/search/stop

User story

As a developer,
I want to perform full text searches for stop names,
so I can provide a better experience to my users

Implementation notes

  • We should use sqlite's built in full text search capabilities instead of adding a separate search engine: https://www.sqlite.org/fts5.html
  • Follow existing patterns for writing new APIs and API tests

Acceptance criteria

  • Maglev responds to requests for GET /api/where/search/stop.json?input={input}&key={key}
  • The schema of Maglev's response format for requests to this endpoint is identical to the current server's format (note that data will, by definition be different between different servers)
  • Full test coverage exists for the endpoint
  • The feature is implemented in a manner that follows the best practice set out for other API endpoints

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions