Configuración de la aplicación web
Ejemplos
El siguiente JSON es un ejemplo para este componente de configuración estandarizado:
{ "AccessControl": ...
, "RateLimitControl": ...
, "DefaultResponseHeaders": ...
, "LogTraceToFile": false
, "LogRequestProgress": false
}
Definición
Se hace referencia a componentes de configuración estandarizados en todas las aplicaciones web de tecnología Invantive, aunque no todos los componentes tienen que estar implementados en todas las aplicaciones web:
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://invantive.com/schemas/defs/WebApplicationSetting.schema.json",
"title": "WebApplicationSetting",
"description": "Web application configuration.",
"type": "object",
"additionalProperties": false,
"properties": {
"AccessControl": {
"anyOf": [
{
"$ref": "./AccessControl.schema.json"
},
{
"type": "null"
}
],
"description": "Access Control configuration."
},
"RateLimitControl": {
"anyOf": [
{
"$ref": "./RateLimitControl.schema.json"
},
{
"type": "null"
}
],
"description": "Rate limit control configuration."
},
"DefaultResponseHeaders": {
"type": ["object", "null"],
"additionalProperties": {
"type": "string"
},
"description": "Default response HTTP headers."
},
"LogTraceToFile": {
"type": ["boolean", "null"],
"description": "Whether to create log file for trace.",
"default": false
},
"LogRequestProgress": {
"type": "boolean",
"description": "Whether to create log file per request.",
"default": false
}
}
}