Skip to content

Build your personal knowledge base with Trilium Notes

improv: applying Gemini's suggestions

Elias Soarese2043c14f2eb
diff --git a/apps/server/etapi.openapi.yaml b/apps/server/etapi.openapi.yaml
index 882c069941..99e5a98c70 100644
--- a/apps/server/etapi.openapi.yaml
+++ b/apps/server/etapi.openapi.yaml
@@ -870,7 +870,8 @@ paths:
$ref: "#/components/schemas/Error"
/calendar/months/{month}:
get:
- description: returns a month note for a given month. Gets created if doesn't exist.
+ summary: Get a month note
+ description: Returns a month note for a given month (format YYYY-MM, e.g., 2022-02). The note is created if it doesn't exist.
operationId: getMonthNote
parameters:
- name: month
@@ -895,7 +896,8 @@ paths:
$ref: "#/components/schemas/Error"
/calendar/years/{year}:
get:
- description: returns a year note for a given year. Gets created if doesn't exist.
+ summary: Get a year note
+ description: Returns a year note for a given year (format YYYY, e.g., 2022). The note is created if it doesn't exist.
operationId: getYearNote
parameters:
- name: year
@@ -903,7 +905,7 @@ paths:
required: true
schema:
type: string
- pattern: "[0-9]{4}"
+ pattern: "^[0-9]{4}$"
example: "2022"
responses:
"200":