From 230266778706f576166c19853ed06c35aea6278f Mon Sep 17 00:00:00 2001 From: David Mehren Date: Sat, 24 Oct 2020 19:25:15 +0200 Subject: [PATCH] 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 Co-authored-by: Yannick Bungers --- docs/dev/public_api.yml | 47 ----------------------------------------- 1 file changed, 47 deletions(-) diff --git a/docs/dev/public_api.yml b/docs/dev/public_api.yml index 5cbb6d9a0..bac4472ff 100644 --- a/docs/dev/public_api.yml +++ b/docs/dev/public_api.yml @@ -318,38 +318,6 @@ paths: text/plain: example: my-note /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: tags: - note @@ -750,21 +718,6 @@ components: type: string permissions: $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: type: object properties: