"""scripts.api — FastAPI REST-Service."""
from .server import create_app


def start_server(
    robot_json=None,
    host: str = "0.0.0.0",
    port: int = 8446,
) -> None:
    import uvicorn
    app = create_app(robot_json=robot_json)
    uvicorn.run(app, host=host, port=port)
