mirror of
https://github.com/apache/superset.git
synced 2026-08-04 13:02:41 +00:00
61 lines
1.7 KiB
JSON
61 lines
1.7 KiB
JSON
{
|
|
"title": "Body",
|
|
"body": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"clause": { "description": "clause_description", "type": "string" },
|
|
"description": {
|
|
"description": "description_description",
|
|
"nullable": true,
|
|
"type": "string"
|
|
},
|
|
"filter_type": {
|
|
"description": "filter_type_description",
|
|
"enum": ["Regular", "Base"],
|
|
"type": "string"
|
|
},
|
|
"group_key": {
|
|
"description": "group_key_description",
|
|
"nullable": true,
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"description": "name_description",
|
|
"maxLength": 255,
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"roles": {
|
|
"description": "roles_description",
|
|
"items": { "type": "integer" },
|
|
"type": "array"
|
|
},
|
|
"tables": {
|
|
"description": "tables_description",
|
|
"items": { "type": "integer" },
|
|
"minItems": 1,
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": ["clause", "filter_type", "name", "roles", "tables"],
|
|
"type": "object",
|
|
"title": "RLSRestApi.post"
|
|
},
|
|
"example": {
|
|
"clause": "string",
|
|
"description": "string",
|
|
"filter_type": "Regular",
|
|
"group_key": "string",
|
|
"name": "string",
|
|
"roles": [1],
|
|
"tables": [1]
|
|
}
|
|
}
|
|
},
|
|
"description": "RLS schema",
|
|
"required": true
|
|
}
|
|
}
|