-
Update
api-server/Cargo.tomlto addutoipaandutoipa-swagger-uidependencies. -
Annotate handlers in
api-server/src/handlers.rswith#[utoipa::path(...)]for:- GET /health
- POST /simulate
- GET /routes
- GET /routes/{name}
-
Create new
api-server/src/openapi.rswithApiDocderivingOpenApiand wiring the annotated handlers. -
Update
api-server/src/main.rsto serve:-
GET /api-docs/openapi.json - Swagger UI at
/swagger-ui/
-
-
Run
cargo testto confirm compilation. -
Smoke test running server and opening the two doc routes.