fix(notes): Include ETags in responses to avoid accidently updates

This commit is contained in:
Chris Coutinho
2025-08-31 19:20:51 +02:00
parent daeb95f3c3
commit 892a8d2d23
3 changed files with 109 additions and 5 deletions
+3
View File
@@ -50,6 +50,7 @@ class CreateNoteResponse(IdResponse):
title: str = Field(description="The created note title")
category: str = Field(description="The created note category")
etag: str = Field(description="Current ETag for the created note")
class UpdateNoteResponse(BaseResponse):
@@ -58,6 +59,7 @@ class UpdateNoteResponse(BaseResponse):
id: int = Field(description="The updated note ID")
title: str = Field(description="The updated note title")
category: str = Field(description="The updated note category")
etag: str = Field(description="Current ETag for the updated note")
class DeleteNoteResponse(StatusResponse):
@@ -72,6 +74,7 @@ class AppendContentResponse(BaseResponse):
id: int = Field(description="The updated note ID")
title: str = Field(description="The updated note title")
category: str = Field(description="The updated note category")
etag: str = Field(description="Current ETag for the updated note")
class SearchNotesResponse(BaseResponse):