Skip to content

Commit 905a73a

Browse files
indent fixed for description
1 parent ed1fd7e commit 905a73a

File tree

1 file changed

+39
-37
lines changed

1 file changed

+39
-37
lines changed

src/backend/v3/api/router.py

Lines changed: 39 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -331,54 +331,56 @@ async def run_orchestration_task():
331331

332332

333333
@app_v3.post("/plan_approval")
334-
async def plan_approval(human_feedback: messages.PlanApprovalResponse, request: Request):
334+
async def plan_approval(
335+
human_feedback: messages.PlanApprovalResponse, request: Request
336+
):
335337
"""
336338
Endpoint to receive plan approval or rejection from the user.
337339
---
338340
tags:
339-
- Plans
340-
parameters:
341-
- name: user_principal_id
342-
in: header
343-
type: string
344-
required: true
345-
description: User ID extracted from the authentication header
346-
requestBody:
347-
description: Plan approval payload
341+
- Plans
342+
parameters:
343+
- name: user_principal_id
344+
in: header
345+
type: string
348346
required: true
347+
description: User ID extracted from the authentication header
348+
requestBody:
349+
description: Plan approval payload
350+
required: true
351+
content:
352+
application/json:
353+
schema:
354+
type: object
355+
properties:
356+
m_plan_id:
357+
type: string
358+
description: The internal m_plan id for the plan (required)
359+
approved:
360+
type: boolean
361+
description: Whether the plan is approved (true) or rejected (false)
362+
feedback:
363+
type: string
364+
description: Optional feedback or comment from the user
365+
plan_id:
366+
type: string
367+
description: Optional user-facing plan_id
368+
responses:
369+
200:
370+
description: Approval recorded successfully
349371
content:
350372
application/json:
351373
schema:
352374
type: object
353375
properties:
354-
m_plan_id:
355-
type: string
356-
description: The internal m_plan id for the plan (required)
357-
approved:
358-
type: boolean
359-
description: Whether the plan is approved (true) or rejected (false)
360-
feedback:
376+
status:
361377
type: string
362-
description: Optional feedback or comment from the user
363-
plan_id:
364-
type: string
365-
description: Optional user-facing plan_id
366-
responses:
367-
200:
368-
description: Approval recorded successfully
369-
content:
370-
application/json:
371-
schema:
372-
type: object
373-
properties:
374-
status:
375-
type: string
376-
401:
377-
description: Missing or invalid user information
378-
404:
379-
description: No active plan found for approval
380-
500:
381-
description: Internal server error
378+
401:
379+
description: Missing or invalid user information
380+
404:
381+
description: No active plan found for approval
382+
500:
383+
description: Internal server error
382384
"""
383385
authenticated_user = get_authenticated_user_details(request_headers=request.headers)
384386
user_id = authenticated_user["user_principal_id"]

0 commit comments

Comments
 (0)