Light/Dark theming
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{
|
||||
{
|
||||
"openapi": "3.0.1",
|
||||
"info": {
|
||||
"title": "RpgRoller API",
|
||||
@@ -156,6 +156,46 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/me/theme": {
|
||||
"put": {
|
||||
"operationId": "updateThemePreference",
|
||||
"requestBody": {
|
||||
"required": true,
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/UpdateThemePreferenceRequest"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Updated current user.",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/UserSummary"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Validation error.",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ApiError"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"401": {
|
||||
"description": "Unauthorized."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/campaigns": {
|
||||
"get": {
|
||||
"operationId": "getCampaigns",
|
||||
@@ -701,12 +741,27 @@
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string"
|
||||
},
|
||||
"roles": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"themePreference": {
|
||||
"type": "string",
|
||||
"nullable": true,
|
||||
"enum": [
|
||||
"light",
|
||||
"dark"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"username",
|
||||
"displayName"
|
||||
"displayName",
|
||||
"roles"
|
||||
]
|
||||
},
|
||||
"MeResponse": {
|
||||
@@ -730,6 +785,21 @@
|
||||
"user"
|
||||
]
|
||||
},
|
||||
"UpdateThemePreferenceRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"themePreference": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"light",
|
||||
"dark"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"themePreference"
|
||||
]
|
||||
},
|
||||
"RulesetDefinition": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user