fix(routes): added undocumented responses

This commit is contained in:
2026-04-20 01:23:07 -04:00
parent 4abfac1a98
commit 5b70a34c94
8 changed files with 52 additions and 6 deletions

View File

@@ -135,7 +135,15 @@ async def dispatch_decnet_config(
return SwarmDeployResponse(results=list(results))
@router.post("/deploy", response_model=SwarmDeployResponse, tags=["Swarm Deployments"])
@router.post(
"/deploy",
response_model=SwarmDeployResponse,
tags=["Swarm Deployments"],
responses={
400: {"description": "Deployment mode must be 'swarm'"},
404: {"description": "A referenced host_uuid is not enrolled"},
},
)
async def api_deploy_swarm(
req: SwarmDeployRequest,
repo: BaseRepository = Depends(get_repo),