Add ability to view personal notes and update note schemas

Adds a new endpoint for listing user-specific notes and refines OpenAPI schemas for better data structure definition.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 77cfe984-2c65-4152-bb7a-0df28274fe66
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 3565b59b-6890-4cf5-90a7-0c8041e15041
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/c3c252e4-c83d-40ca-9fff-99a3ea60701e/77cfe984-2c65-4152-bb7a-0df28274fe66/G3ZvHke
Replit-Helium-Checkpoint-Created: true
This commit is contained in:
riyadhafraa
2026-05-05 15:28:41 +00:00
parent 5b13fe16f5
commit eade4643e5
4 changed files with 142 additions and 5 deletions
+19 -2
View File
@@ -2733,6 +2733,24 @@ paths:
$ref: "#/components/schemas/ErrorResponse"
# ----- Notes (in-app messaging) -----
/notes/my:
get:
operationId: listMyNotesAlias
tags: [notes]
summary: Alias of GET /notes — list the caller's own notes
parameters:
- in: query
name: archived
required: false
schema: { type: boolean, default: false }
responses:
"200":
description: The caller's notes
content:
application/json:
schema:
type: array
items: { type: object, additionalProperties: true }
/notes/sent:
get:
operationId: listSentNotes
@@ -4856,7 +4874,6 @@ components:
id: { type: integer }
noteId: { type: integer }
recipientUserId: { type: integer }
senderUserId: { type: integer }
status: { $ref: "#/components/schemas/NoteRecipientStatus" }
sentAt: { type: string, format: date-time }
readAt: { type: ["string", "null"], format: date-time }
@@ -4866,7 +4883,7 @@ components:
- $ref: "#/components/schemas/NoteUserSummary"
- type: "null"
required:
[id, recipientUserId, senderUserId, status, sentAt, readAt, archivedAt]
[id, recipientUserId, status, sentAt, readAt, archivedAt]
SentNote:
type: object