FEAT: add logic to native documentation with AI

This commit is contained in:
ruanwebdev
2025-09-23 16:28:38 -03:00
parent cd55dc0dc4
commit 8d04c1d495
8 changed files with 1024 additions and 51 deletions
+137
View File
@@ -42,6 +42,33 @@
]
}
},
"/auth/sign-out": {
"post": {
"operationId": "AuthController_signOut",
"parameters": [
{
"name": "dadosfera-lang",
"in": "header",
"required": false,
"schema": {
"enum": [
"pt-br",
"en-us"
],
"type": "string"
}
}
],
"responses": {
"204": {
"description": ""
}
},
"tags": [
"Auth"
]
}
},
"/auth/refresh-access-token": {
"post": {
"operationId": "AuthController_refreshAccessToken",
@@ -5135,6 +5162,116 @@
]
}
},
"/catalog/data-asset/{nimbus_id}/docs/ai": {
"post": {
"operationId": "CatalogController_saveDocumentation",
"summary": "Save documentation for data asset",
"description": "Saves documentation content for a data asset",
"parameters": [
{
"name": "dadosfera-lang",
"in": "header",
"required": false,
"schema": {
"enum": [
"pt-br",
"en-us"
],
"type": "string"
}
},
{
"name": "nimbus_id",
"required": true,
"in": "path",
"description": "Nimbus ID of the data asset",
"schema": {
"type": "string"
}
}
],
"responses": {
"201": {
"description": "Documentation saved successfully"
}
},
"tags": [
"Catalog"
],
"security": [
{
"access-token": []
}
]
}
},
"/catalog/data-asset/{nimbus_id}/docs/generate-ai": {
"post": {
"operationId": "CatalogController_generateAiDocumentation",
"summary": "Generate AI documentation for data asset",
"description": "Generates comprehensive documentation for a data asset using AI (Autodrive)",
"parameters": [
{
"name": "dadosfera-lang",
"in": "header",
"required": false,
"schema": {
"enum": [
"pt-br",
"en-us"
],
"type": "string"
}
},
{
"name": "nimbus_id",
"required": true,
"in": "path",
"description": "Nimbus ID of the data asset",
"schema": {
"type": "string"
}
}
],
"responses": {
"201": {
"description": "AI documentation generated successfully",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
},
"documentation": {
"type": "string"
}
}
}
}
}
},
"400": {
"description": "Bad request - invalid nimbus_id or missing data"
},
"404": {
"description": "Data asset not found"
},
"500": {
"description": "Internal server error during AI generation"
}
},
"tags": [
"Catalog"
],
"security": [
{
"access-token": []
}
]
}
},
"/customers/{id}/mfa": {
"post": {
"operationId": "CustomersController_enableMfaEnforce",