Skip to content

Implement Trip Search API #64

Description

@jliu1016

Description

Create the API to allow users to search for train schedules.

Requirements

  • Architecture: Follow NestJS patterns: Controllers for request handling, Services for business logic, and Repositories for data access. Use @InjectRepository(EntityName) for MikroORM injection. See Custom Repositories.
  • Endpoint: GET /trips/search
  • Query Params: origin, destination, date
  • Logic: Use GtfsService to query GTFSTrip and GTFSStopTime to return valid start/end times.

Acceptance Criteria

  • Returns list of available trips for the date.

Disclaimer: This ticket was generated using AI. Please practice caution and consider if information may be outdated.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions