-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
for new endpoint `/application/preferences`
- Loading branch information
1 parent
5c85bfd
commit a9dd731
Showing
3 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# /application/preferences path | ||
get: | ||
tags: | ||
- Application | ||
summary: Get user preferences | ||
responses: | ||
200: | ||
description: User preferences | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../schemas/preferences.yaml' | ||
default: | ||
$ref: '../responses/unexpectedError.yaml' | ||
|
||
post: | ||
tags: | ||
- Application | ||
summary: Set user preferences | ||
requestBody: | ||
description: User preferences | ||
content: | ||
'application/json': | ||
schema: | ||
$ref: '../schemas/preferences.yaml' | ||
responses: | ||
200: | ||
description: User preferences | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../schemas/preferences.yaml' | ||
default: | ||
$ref: '../responses/unexpectedError.yaml' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# preferences schema | ||
type: object | ||
properties: | ||
line-wrap: | ||
type: boolean | ||
description: Set line wrap for xml preview | ||
default: true | ||
limit: | ||
type: integer | ||
format: int32 | ||
description: Set the limit for list views | ||
default: 10 | ||
enum: | ||
- 10 | ||
- 25 | ||
- 50 | ||
rdg-marker: | ||
type: boolean | ||
description: Show reading markers within the text view | ||
default: false | ||
textConst-marker: | ||
type: boolean | ||
description: Show text constitution markers within the text view | ||
default: true | ||
supplied-marker: | ||
type: boolean | ||
description: Show supplied markers within the text view | ||
default: true | ||
note-marker: | ||
type: boolean | ||
description: Show note markers within the text view | ||
default: true | ||
thematicCommentaries-marker: | ||
type: boolean | ||
description: Show thematic commentaries markers within the text view | ||
default: true |