19 lines
426 B
Python
19 lines
426 B
Python
from __future__ import annotations
|
|
|
|
from fastapi import FastAPI
|
|
from pydantic import BaseModel
|
|
|
|
app = FastAPI(title="FleetOpt API (MVP)")
|
|
|
|
|
|
class PlanInput(BaseModel):
|
|
fleet_id: str
|
|
robot_id: str
|
|
tasks: list[str]
|
|
|
|
|
|
@app.post("/submit_plan")
|
|
def submit_plan(plan: PlanInput):
|
|
# Placeholder endpoint for MVP; real state is in core modules.
|
|
return {"ok": True, "fleet": plan.fleet_id, "robot": plan.robot_id}
|