FEAT: add custom properties endpoints and DTOs for catalog management

This commit is contained in:
viniciusgadea
2026-08-12 12:13:24 -03:00
committed by marcos.rodrigues
parent a47519c431
commit d63d71831e
6 changed files with 282 additions and 8 deletions
+169
View File
@@ -5662,6 +5662,148 @@
]
}
},
"/catalog/custom-properties": {
"get": {
"operationId": "CatalogController_getCustomPropertyDefinitions",
"parameters": [
{
"name": "dadosfera-lang",
"in": "header",
"required": false,
"schema": {
"enum": [
"pt-br",
"en-us"
],
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
},
"tags": [
"Catalog"
],
"security": [
{
"access-token": []
},
{
"access-token": []
}
]
},
"post": {
"operationId": "CatalogController_upsertCustomPropertyDefinition",
"parameters": [
{
"name": "dadosfera-lang",
"in": "header",
"required": false,
"schema": {
"enum": [
"pt-br",
"en-us"
],
"type": "string"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CustomPropertyDefinitionDto"
}
}
}
},
"responses": {
"201": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
},
"tags": [
"Catalog"
],
"security": [
{
"access-token": []
},
{
"access-token": []
}
]
}
},
"/catalog/custom-properties/{key}": {
"delete": {
"operationId": "CatalogController_deleteCustomPropertyDefinition",
"parameters": [
{
"name": "dadosfera-lang",
"in": "header",
"required": false,
"schema": {
"enum": [
"pt-br",
"en-us"
],
"type": "string"
}
},
{
"name": "key",
"required": true,
"in": "path",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
},
"tags": [
"Catalog"
],
"security": [
{
"access-token": []
},
{
"access-token": []
}
]
}
},
"/catalog/data-asset/{id}": {
"get": {
"operationId": "CatalogController_getDataAsset",
@@ -11029,6 +11171,30 @@
"total"
]
},
"CustomPropertyDefinitionDto": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"name": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"text",
"number",
"boolean",
"date"
]
}
},
"required": [
"name",
"type"
]
},
"IColumnMetadata": {
"type": "object",
"properties": {
@@ -11251,6 +11417,9 @@
},
"docs": {
"type": "string"
},
"custom_properties": {
"type": "object"
}
},
"required": [