mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 03:06:31 -05:00
Public API: Update description of /notes/{note} POST and PUT routes.
Signed-off-by: David Mehren <git@herrmehren.de> Co-authored-by: Yannick Bungers <git@innay.de>
This commit is contained in:
parent
ad676ce6ff
commit
cae430f25f
1 changed files with 2 additions and 2 deletions
|
@ -226,7 +226,7 @@ paths:
|
||||||
- note
|
- note
|
||||||
summary: Imports some markdown data into a new note with a given alias
|
summary: Imports some markdown data into a new note with a given alias
|
||||||
operationId: createNoteWithAlias
|
operationId: createNoteWithAlias
|
||||||
description: This endpoint equals to the above one except that the alias from the url will be assigned to the note if [FreeURL-mode](https://github.com/codimd/server/tree/master/docs/configuration-env-vars.md#users-and-privileges) is enabled.
|
description: This endpoint creates a new note with the content of the HTTP request body and the alias from the URL parameter.
|
||||||
requestBody:
|
requestBody:
|
||||||
required: true
|
required: true
|
||||||
description: The content of the note to be imported as markdown.
|
description: The content of the note to be imported as markdown.
|
||||||
|
@ -285,7 +285,7 @@ paths:
|
||||||
- note
|
- note
|
||||||
summary: Imports some markdown data into an existing note, creating a new revision
|
summary: Imports some markdown data into an existing note, creating a new revision
|
||||||
operationId: createNewRevisionForNote
|
operationId: createNewRevisionForNote
|
||||||
description: This endpoint equals to the above one except that the alias from the url will be assigned to the note if [FreeURL-mode](https://github.com/codimd/server/tree/master/docs/configuration-env-vars.md#users-and-privileges) is enabled.
|
description: This endpoint updates the note content of an existing note. The old content is completely replaced and a new revision is created.
|
||||||
requestBody:
|
requestBody:
|
||||||
required: true
|
required: true
|
||||||
description: The content of the note to be imported as markdown.
|
description: The content of the note to be imported as markdown.
|
||||||
|
|
Loading…
Reference in a new issue