mirror of
https://github.com/TriliumNext/Trilium.git
synced 2025-12-10 21:07:05 -06:00
chore(server): add OpenAPI spec for to-markdown
This commit is contained in:
parent
1ed46bd47c
commit
ea613986c2
@ -4328,6 +4328,28 @@ paths:
|
|||||||
text/html:
|
text/html:
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
/api/other/to-markdown:
|
||||||
|
post:
|
||||||
|
tags: [Utilities]
|
||||||
|
summary: Renders given HTML to Markdown
|
||||||
|
operationId: toMarkdown
|
||||||
|
requestBody:
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
required: [htmlContent]
|
||||||
|
properties:
|
||||||
|
htmlContent:
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: The input text rendered as Markdown
|
||||||
|
content:
|
||||||
|
text/plain:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
|
||||||
components:
|
components:
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user