mirror of
https://github.com/zadam/trilium.git
synced 2025-11-18 03:00:41 +01:00
fix a couple of api shortcomings
* add note content to openapi spec file * add test for get note content api endpoint
This commit is contained in:
@@ -228,6 +228,23 @@ paths:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/Error'
|
||||
/notes/{noteId}/content:
|
||||
parameters:
|
||||
- name: noteId
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/components/schemas/EntityId'
|
||||
get:
|
||||
description: Returns note content idenfied by its ID
|
||||
operationId: getNoteContent
|
||||
responses:
|
||||
'200':
|
||||
description: note content response
|
||||
content:
|
||||
text/html:
|
||||
schema:
|
||||
type: string
|
||||
/notes/{noteId}/export:
|
||||
parameters:
|
||||
- name: noteId
|
||||
|
||||
Reference in New Issue
Block a user