The config API is created dynamically from the config. This mean that the swagger definition file will contain the description and types based on the configuration. The config.json file is used by the code generator to define a path that is used to register the handler function. Signed-off-by: Amnon Heiman <amnon@scylladb.com>
31 lines
724 B
JSON
31 lines
724 B
JSON
"/v2/config/{id}": {
|
|
"get": {
|
|
"description": "Return a config value",
|
|
"operationId": "find_config_id",
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": ["config"],
|
|
"parameters": [
|
|
{
|
|
"name": "id",
|
|
"in": "path",
|
|
"description": "ID of config to return",
|
|
"required": true,
|
|
"type": "string"
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Config value"
|
|
},
|
|
"default": {
|
|
"description": "unexpected error",
|
|
"schema": {
|
|
"$ref": "#/definitions/ErrorModel"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|