mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-24 18:56:32 -05:00
changed /note/ to /notes/
added /notes/{note}/permissions
This commit is contained in:
parent
7649a46ff8
commit
78b2563693
1 changed files with 62 additions and 9 deletions
|
@ -111,7 +111,7 @@ paths:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
"$ref": "#/components/schemas/ServerStatus"
|
"$ref": "#/components/schemas/ServerStatus"
|
||||||
/note:
|
/notes:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
- note
|
- note
|
||||||
|
@ -135,7 +135,7 @@ paths:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
"$ref": "#/components/schemas/NewNote"
|
"$ref": "#/components/schemas/NewNote"
|
||||||
/note/{note}:
|
/notes/{note}:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
- note
|
- note
|
||||||
|
@ -192,7 +192,54 @@ paths:
|
||||||
content:
|
content:
|
||||||
text/plain:
|
text/plain:
|
||||||
example: my-note
|
example: my-note
|
||||||
/note/{note}/export/markdown:
|
/notes/{note}/permissions:
|
||||||
|
put:
|
||||||
|
tags:
|
||||||
|
- note
|
||||||
|
summary: Set the permissions of a note
|
||||||
|
operationId: updateNotePermissions
|
||||||
|
requestBody:
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
"$ref": "#/components/schemas/NotePermissions"
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: The updated permissions of the note
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
"$ref": "#/components/schemas/NotePermissions"
|
||||||
|
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
|
||||||
|
summary: Get the permissions of a note
|
||||||
|
operationId: getNotePermissions
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: The permissions of the note
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
"$ref": "#/components/schemas/NotePermissions"
|
||||||
|
parameters:
|
||||||
|
- name: note
|
||||||
|
in: path
|
||||||
|
required: true
|
||||||
|
description: The note for which the info should be shown
|
||||||
|
content:
|
||||||
|
text/plain:
|
||||||
|
example: my-note
|
||||||
|
/notes/{note}/export/markdown:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
- note
|
- note
|
||||||
|
@ -217,7 +264,7 @@ paths:
|
||||||
content:
|
content:
|
||||||
text/plain:
|
text/plain:
|
||||||
example: my-note
|
example: my-note
|
||||||
/note/{note}/export/html:
|
/notes/{note}/export/html:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
- note
|
- note
|
||||||
|
@ -242,7 +289,7 @@ paths:
|
||||||
content:
|
content:
|
||||||
text/plain:
|
text/plain:
|
||||||
example: my-note
|
example: my-note
|
||||||
/note/{note}/export/gist:
|
/notes/{note}/export/gist:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
- note
|
- note
|
||||||
|
@ -266,7 +313,7 @@ paths:
|
||||||
content:
|
content:
|
||||||
text/plain:
|
text/plain:
|
||||||
example: my-note
|
example: my-note
|
||||||
/note/{note}/export/dropbox:
|
/notes/{note}/export/dropbox:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
- note
|
- note
|
||||||
|
@ -290,7 +337,7 @@ paths:
|
||||||
content:
|
content:
|
||||||
text/plain:
|
text/plain:
|
||||||
example: my-note
|
example: my-note
|
||||||
/note/{note}/export/pdf:
|
/notes/{note}/export/pdf:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
- note
|
- note
|
||||||
|
@ -315,7 +362,7 @@ paths:
|
||||||
content:
|
content:
|
||||||
text/plain:
|
text/plain:
|
||||||
example: my-note
|
example: my-note
|
||||||
/note/{note}/revision:
|
/notes/{note}/revision:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
- note
|
- note
|
||||||
|
@ -340,7 +387,7 @@ paths:
|
||||||
text/plain:
|
text/plain:
|
||||||
example: my-note
|
example: my-note
|
||||||
|
|
||||||
/note/{note}/revision/{revision-id}:
|
/notes/{note}/revision/{revision-id}:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
- note
|
- note
|
||||||
|
@ -423,6 +470,12 @@ components:
|
||||||
items:
|
items:
|
||||||
type: integer
|
type: integer
|
||||||
description: Unique user ids and additional data
|
description: Unique user ids and additional data
|
||||||
|
NotePermissions:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
permission:
|
||||||
|
type: string
|
||||||
|
enum: ['freely', 'editable', 'limited', 'locked', 'protected', 'private']
|
||||||
NoteRevisionsMetadata:
|
NoteRevisionsMetadata:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
|
Loading…
Reference in a new issue