mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-29 06:14:04 +00:00
Public API: Remove PUT /notes/{note}/metadata
The note metadata will be automatically extracted from the note content and cannot be updated separately. Signed-off-by: David Mehren <git@herrmehren.de> Co-authored-by: Yannick Bungers <git@innay.de>
This commit is contained in:
parent
7adcad2ce6
commit
a4ac295ada
1 changed files with 0 additions and 47 deletions
|
@ -304,38 +304,6 @@ paths:
|
||||||
text/plain:
|
text/plain:
|
||||||
example: my-note
|
example: my-note
|
||||||
/notes/{note}/metadata:
|
/notes/{note}/metadata:
|
||||||
put:
|
|
||||||
tags:
|
|
||||||
- note
|
|
||||||
summary: Set the metadata (title, description, tags) of a note
|
|
||||||
operationId: updateNoteMetadata
|
|
||||||
requestBody:
|
|
||||||
required: true
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
"$ref": "#/components/schemas/NoteMetadataUpdate"
|
|
||||||
responses:
|
|
||||||
'200':
|
|
||||||
description: The updated metadata of the note.
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
"$ref": "#/components/schemas/NoteMetadataUpdate"
|
|
||||||
'401':
|
|
||||||
"$ref": "#/components/responses/UnauthorizedError"
|
|
||||||
'403':
|
|
||||||
"$ref": "#/components/responses/ForbiddenError"
|
|
||||||
'404':
|
|
||||||
"$ref": "#/components/responses/NotFoundError"
|
|
||||||
parameters:
|
|
||||||
- name: note
|
|
||||||
in: path
|
|
||||||
required: true
|
|
||||||
description: The note for which the info should be shown.
|
|
||||||
content:
|
|
||||||
text/plain:
|
|
||||||
example: my-note
|
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
- note
|
- note
|
||||||
|
@ -722,21 +690,6 @@ components:
|
||||||
type: string
|
type: string
|
||||||
permissions:
|
permissions:
|
||||||
$ref: "#/components/schemas/NotePermissions"
|
$ref: "#/components/schemas/NotePermissions"
|
||||||
NoteMetadataUpdate:
|
|
||||||
type: object
|
|
||||||
description: Contains only title, description and tags of a note.
|
|
||||||
properties:
|
|
||||||
title:
|
|
||||||
type: string
|
|
||||||
description: Title of the note
|
|
||||||
description:
|
|
||||||
type: string
|
|
||||||
description: Description of the note.
|
|
||||||
tags:
|
|
||||||
type: array
|
|
||||||
description: A list of tags attached to the note.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
NotePermissions:
|
NotePermissions:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
|
Loading…
Reference in a new issue