mirror of
https://github.com/directus/directus.git
synced 2026-02-15 13:45:11 -05:00
76 lines
2.0 KiB
YAML
76 lines
2.0 KiB
YAML
get:
|
|
description: List the settings.
|
|
operationId: getSettings
|
|
parameters:
|
|
- $ref: "../../#/components/parameters/Limit"
|
|
- $ref: "../../#/components/parameters/Offset"
|
|
- $ref: "../../#/components/parameters/Single"
|
|
- $ref: "../../#/components/parameters/Meta"
|
|
- $ref: "../../#/components/parameters/Page"
|
|
responses:
|
|
"200":
|
|
description: Successful request
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
data:
|
|
$ref: "../../#/components/schemas/Setting"
|
|
"401":
|
|
$ref: "../../#/components/responses/UnauthorizedError"
|
|
"404":
|
|
$ref: "../../#/components/responses/NotFoundError"
|
|
tags:
|
|
- Settings
|
|
patch:
|
|
description: Update an existing setting
|
|
operationId: updateSetting
|
|
requestBody:
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
responses:
|
|
"200":
|
|
description: Successful request
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
data:
|
|
$ref: "../../#/components/schemas/Setting"
|
|
"401":
|
|
$ref: "../../#/components/responses/UnauthorizedError"
|
|
"404":
|
|
$ref: "../../#/components/responses/NotFoundError"
|
|
tags:
|
|
- Settings
|
|
# post:
|
|
# description: Create a new setting.
|
|
# operationId: createSettings
|
|
# parameters:
|
|
# - $ref: '../../#/components/parameters/Meta'
|
|
# requestBody:
|
|
# content:
|
|
# application/json:
|
|
# schema:
|
|
# type: object
|
|
# responses:
|
|
# '200':
|
|
# description: Successful request
|
|
# content:
|
|
# application/json:
|
|
# schema:
|
|
# type: object
|
|
# properties:
|
|
# data:
|
|
# $ref: '../../#/components/schemas/Setting'
|
|
# '401':
|
|
# $ref: '../../#/components/responses/UnauthorizedError'
|
|
# '404':
|
|
# $ref: '../../#/components/responses/NotFoundError'
|
|
# tags:
|
|
# - Settings
|