Files
nova/tests/endpoints.py
2026-04-12 10:02:17 -03:00

36 lines
973 B
Python

"""Centralized API endpoint paths — single source of truth."""
class Endpoints:
# Scenarios
SCENARIOS = "/scenarios"
SCENARIO_ACTIVE = "/scenarios/active"
# Scenario data
DATA_FLIGHTS = "/scenarios/data/flights"
DATA_CREW = "/scenarios/data/crew"
DATA_CREW_NOTES = "/scenarios/data/crew-notes"
DATA_MAINTENANCE = "/scenarios/data/maintenance"
DATA_REBOOKINGS = "/scenarios/data/rebookings"
@staticmethod
def flight(flight_id: str) -> str:
return f"/scenarios/data/flights/{flight_id}"
@staticmethod
def crew(crew_id: str) -> str:
return f"/scenarios/data/crew/{crew_id}"
@staticmethod
def crew_notes(flight_id: str) -> str:
return f"/scenarios/data/crew-notes/{flight_id}"
# Agents
AGENT_FCE = "/agents/fce"
AGENT_HANDOVER = "/agents/handover"
AGENT_RUNS = "/agents/runs"
@staticmethod
def run(run_id: str) -> str:
return f"/agents/runs/{run_id}"