mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-02-19 20:52:08 +00:00
added /history/{note}
This commit is contained in:
parent
8d3a89d73f
commit
83e8331b3e
1 changed files with 45 additions and 1 deletions
|
@ -453,7 +453,7 @@ paths:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
- history
|
- history
|
||||||
summary: Sets the history
|
summary: Sets the history if none is already set
|
||||||
operationId: updateHistory
|
operationId: updateHistory
|
||||||
requestBody:
|
requestBody:
|
||||||
description: The history to update
|
description: The history to update
|
||||||
|
@ -477,6 +477,50 @@ paths:
|
||||||
200:
|
200:
|
||||||
description: Deleted the history
|
description: Deleted the history
|
||||||
content: {}
|
content: {}
|
||||||
|
/history/{note}/:
|
||||||
|
put:
|
||||||
|
tags:
|
||||||
|
- history
|
||||||
|
summary: Update the history object of the note (e.g change it's pin status)
|
||||||
|
operationId: updateHistoryObject
|
||||||
|
requestBody:
|
||||||
|
description: The updated history object
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
"$ref": "#/components/schemas/HistoryObject"
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: The new history
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
"$ref": "#/components/schemas/HistoryObject"
|
||||||
|
parameters:
|
||||||
|
- name: note
|
||||||
|
in: path
|
||||||
|
required: true
|
||||||
|
description: The note for which the revision should be shown
|
||||||
|
content:
|
||||||
|
text/plain:
|
||||||
|
example: my-note
|
||||||
|
delete:
|
||||||
|
tags:
|
||||||
|
- history
|
||||||
|
summary: remove the history object of the note
|
||||||
|
operationId: deleteHistoryObject
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: The new history
|
||||||
|
content: {}
|
||||||
|
parameters:
|
||||||
|
- name: note
|
||||||
|
in: path
|
||||||
|
required: true
|
||||||
|
description: The note for which the revision should be shown
|
||||||
|
content:
|
||||||
|
text/plain:
|
||||||
|
example: my-note
|
||||||
/config:
|
/config:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
|
|
Loading…
Reference in a new issue