mirror of
https://github.com/zadam/trilium.git
synced 2026-02-27 09:03:36 +01:00
Fix: Change /calendar/weeks/{date} to use ISO week format (YYYY-Www) … (#8204)
This commit is contained in:
commit
dc2ffa516b
@ -692,18 +692,20 @@ paths:
|
|||||||
application/json; charset=utf-8:
|
application/json; charset=utf-8:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/Error"
|
$ref: "#/components/schemas/Error"
|
||||||
/calendar/weeks/{date}:
|
/calendar/weeks/{week}:
|
||||||
get:
|
get:
|
||||||
description: returns a week note for a given date. Gets created if doesn't exist.
|
summary: Get a week note
|
||||||
operationId: getWeekFirstDayNote
|
description: Returns a week note for a given ISO week (format YYYY-Www, e.g., 2025-W01). The note is created if it doesn't exist.
|
||||||
|
operationId: getWeekNote
|
||||||
parameters:
|
parameters:
|
||||||
- name: date
|
- name: week
|
||||||
in: path
|
in: path
|
||||||
required: true
|
required: true
|
||||||
|
description: The ISO 8601 week identifier (YYYY-Www).
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
format: date
|
pattern: "[0-9]{4}-W[0-9]{2}"
|
||||||
example: 2022-02-22
|
example: "2025-W01"
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: week note
|
description: week note
|
||||||
@ -930,7 +932,24 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
type:
|
type:
|
||||||
type: string
|
type: string
|
||||||
enum: [text, code, render, file, image, search, relationMap, book, noteMap, mermaid, webView, shortcut, doc, contentWidget, launcher]
|
enum:
|
||||||
|
[
|
||||||
|
text,
|
||||||
|
code,
|
||||||
|
render,
|
||||||
|
file,
|
||||||
|
image,
|
||||||
|
search,
|
||||||
|
relationMap,
|
||||||
|
book,
|
||||||
|
noteMap,
|
||||||
|
mermaid,
|
||||||
|
webView,
|
||||||
|
shortcut,
|
||||||
|
doc,
|
||||||
|
contentWidget,
|
||||||
|
launcher,
|
||||||
|
]
|
||||||
mime:
|
mime:
|
||||||
type: string
|
type: string
|
||||||
isProtected:
|
isProtected:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user