Skip to content

Ticket 3: Build the Mock "Route" API Endpoint #4

Description

@matbbiji

First Read:

The Frontend team needs our API to test their map, but we don't have the routing math done yet. Build a "dummy" endpoint that just returns the hardcoded API JSON schema.

Definition of Done:

[ ] A POST /api/route endpoint exists.

[ ] It accepts a JSON request with start_coords and end_coords.

[ ] It returns this exact mock response:

{
"overall_safety_risk": 38,
"route_coordinates": [
{ "latitude": 32.9857, "longitude": -96.7501 },
{ "latitude": 32.9860, "longitude": -96.7505 },
{ "latitude": 32.9870, "longitude": -96.7510 }
],
"eta_minutes": 6
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions