Skip to content

Commit a44e9b5

Browse files
Switches conversation update HTTP method to PATCH
Aligns API and OpenAPI spec with REST conventions by replacing POST with PATCH for updating conversations. Improves semantic clarity for partial updates and enhances adherence to standard practices.uild
1 parent 4d8db04 commit a44e9b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/specs/web-server/_conversations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ async def list_conversations(
6969
): ...
7070

7171

72-
@router.post(
72+
@router.patch(
7373
"/conversations/{conversation_id}",
7474
response_model=Envelope[ConversationRestGet],
7575
)

services/web/server/src/simcore_service_webserver/api/v0/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ paths:
571571
schema:
572572
$ref: '#/components/schemas/Page_ConversationRestGet_'
573573
/v0/conversations/{conversation_id}:
574-
post:
574+
patch:
575575
tags:
576576
- conversations
577577
summary: Update Conversation

0 commit comments

Comments
 (0)