Skip to content

Create routes API endpoint #16

@3nd3r1

Description

@3nd3r1

Create REST API endpoint for route queries that fetches HSL routes and prepares them for AI enhancement.

Technical Details:

  • Create app/api/v1/endpoints/routes.py
  • Implement POST /api/v1/routes/search endpoint
  • Accept origin/destination (coordinates)
  • Call HSL service that was implemented to fetch routes
  • Return routes in standardized format
  • Add request validation with Pydantic schemas

Acceptance Criteria:

  • POST /api/v1/routes/search endpoint works
  • Accepts origin and destination parameters
  • Returns list of routes with details
  • Validates input data

Metadata

Metadata

Labels

No labels
No labels
No fields configured for Subtask.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions