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
Disclaimer: This ticket was generated using AI. Please practice caution and consider if information may be outdated.
Description
Create the API to allow users to search for train schedules.
Requirements
@InjectRepository(EntityName)for MikroORM injection. See Custom Repositories.GET /trips/searchorigin,destination,dateGtfsServiceto queryGTFSTripandGTFSStopTimeto return valid start/end times.Acceptance Criteria
Disclaimer: This ticket was generated using AI. Please practice caution and consider if information may be outdated.