Merge branch 'main' into feat/rest-api

This commit is contained in:
Gabriel Rosa
2022-11-21 13:36:13 -03:00
12 changed files with 159 additions and 785 deletions
+25 -473
View File
@@ -2394,88 +2394,6 @@
]
}
},
"/inputs/test-connection": {
"post": {
"operationId": "InputsController_testConnection",
"parameters": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TestConnectionReq"
}
}
}
},
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TestConnectionRes"
}
}
}
},
"201": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
},
"tags": [
"Inputs"
]
}
},
"/inputs/test-connection/get-columns": {
"post": {
"operationId": "InputsController_getColumns",
"parameters": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TestConnectionGetColumnsReq"
}
}
}
},
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TestConnectionGetColumnsRes"
}
}
}
},
"201": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
},
"tags": [
"Inputs"
]
}
},
"/inputs": {
"post": {
"operationId": "InputsController_create",
@@ -3300,7 +3218,7 @@
"info": {
"title": "Maestro - feat/rest-api",
"description": "Documentation for Maestro gateway",
"version": "17.11.2022 - 9:23",
"version": "21.11.2022 - 13:36",
"contact": {}
},
"tags": [],
@@ -5174,13 +5092,31 @@
"updated_at"
]
},
"AvailableEntity": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"replication_methods": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"name",
"replication_methods"
]
},
"GetAvailableEntitiesRes": {
"type": "object",
"properties": {
"entities": {
"type": "array",
"items": {
"type": "string"
"$ref": "#/components/schemas/AvailableEntity"
}
}
},
@@ -5188,99 +5124,6 @@
"entities"
]
},
"CredentialsJdbc": {
"type": "object",
"properties": {
"jdbc_user": {
"type": "string"
},
"jdbc_password": {
"type": "string"
},
"database": {
"type": "string"
},
"endpoint": {
"type": "string"
},
"port": {
"type": "string"
},
"engine": {
"type": "string"
},
"schema": {
"type": "string"
}
}
},
"TestConnectionReq": {
"type": "object",
"properties": {
"plugin": {
"type": "string"
},
"credentials": {
"$ref": "#/components/schemas/CredentialsJdbc"
},
"info": {
"type": "object"
}
},
"required": [
"plugin",
"credentials"
]
},
"TestConnectionRes": {
"type": "object",
"properties": {
"connection_state": {
"type": "boolean"
},
"total_entities": {
"type": "number"
},
"database_tables": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"connection_state",
"total_entities",
"database_tables"
]
},
"TestConnectionGetColumnsReq": {
"type": "object",
"properties": {
"plugin": {
"type": "string"
},
"tables": {
"type": "array",
"items": {
"type": "string"
}
},
"credentials": {
"$ref": "#/components/schemas/CredentialsJdbc"
},
"id": {
"type": "string"
},
"info": {
"type": "object"
}
},
"required": [
"plugin",
"tables"
]
},
"TableColumns": {
"type": "object",
"properties": {
@@ -5298,203 +5141,16 @@
"items": {
"type": "string"
}
},
"type": {
"type": "string"
}
},
"required": [
"name",
"columns",
"references"
]
},
"TestConnectionGetColumnsRes": {
"type": "object",
"properties": {
"tables": {
"type": "array",
"items": {
"$ref": "#/components/schemas/TableColumns"
}
}
},
"required": [
"tables"
]
},
"FileFormatParams": {
"type": "object",
"properties": {
"sep": {
"type": "string"
},
"header": {
"type": "boolean"
},
"encoding": {
"type": "string"
}
},
"required": [
"sep",
"header",
"encoding"
]
},
"GoogleAnalyticsClientSecrets": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"project_id": {
"type": "string"
},
"private_key_id": {
"type": "string"
},
"private_key": {
"type": "string"
},
"client_email": {
"type": "string"
},
"client_id": {
"type": "string"
},
"auth_uri": {
"type": "string"
},
"token_uri": {
"type": "string"
},
"auth_provider_x509_cert_url": {
"type": "string"
},
"client_x509_cert_url": {
"type": "string"
}
},
"required": [
"type",
"project_id",
"private_key_id",
"private_key",
"client_email",
"client_id",
"auth_uri",
"token_uri",
"auth_provider_x509_cert_url",
"client_x509_cert_url"
]
},
"Credentials": {
"type": "object",
"properties": {
"jdbc_user": {
"type": "string"
},
"jdbc_password": {
"type": "string"
},
"database": {
"type": "string"
},
"endpoint": {
"type": "string"
},
"port": {
"type": "string"
},
"engine": {
"type": "string"
},
"schema": {
"type": "string"
},
"connection_type": {
"type": "string"
},
"client_aws_access_key_id": {
"type": "string"
},
"client_aws_secret_access_key": {
"type": "string"
},
"client_bucket": {
"type": "string"
},
"file_to_extract": {
"type": "string"
},
"file_format_params": {
"$ref": "#/components/schemas/FileFormatParams"
},
"view_id": {
"type": "string"
},
"client_secrets": {
"$ref": "#/components/schemas/GoogleAnalyticsClientSecrets"
},
"start_date": {
"type": "string"
},
"end_date": {
"type": "string"
},
"oauth_code": {
"type": "string"
}
},
"required": [
"connection_type"
]
},
"OauthObject": {
"type": "object",
"properties": {
"get_tokens_url": {
"type": "string"
},
"get_tokens_url_params": {
"type": "string"
},
"get_tokens_set_response": {
"type": "object"
},
"content_type": {
"type": "string"
}
}
},
"InputOptions": {
"type": "object",
"properties": {
"oauth": {
"$ref": "#/components/schemas/OauthObject"
},
"skip_select_columns": {
"type": "boolean"
},
"skip_select_entities": {
"type": "boolean"
},
"skip_transformation": {
"type": "boolean"
}
}
},
"AuthParameters": {
"type": "object",
"properties": {
"aws_access_key_id": {
"type": "string"
},
"aws_secret_access_key": {
"type": "string"
}
},
"required": [
"aws_access_key_id",
"aws_secret_access_key"
"references",
"type"
]
},
"CreateInputReq": {
@@ -5517,58 +5173,6 @@
},
"type": {
"type": "string"
},
"category": {
"type": "string",
"deprecated": true
},
"credentials": {
"deprecated": true,
"allOf": [
{
"$ref": "#/components/schemas/Credentials"
}
]
},
"options": {
"deprecated": true,
"allOf": [
{
"$ref": "#/components/schemas/InputOptions"
}
]
},
"info": {
"type": "object",
"deprecated": true
},
"cron": {
"type": "string",
"deprecated": true
},
"source_bucket": {
"type": "string",
"deprecated": true
},
"source_prefix": {
"type": "string",
"deprecated": true
},
"auth_parameters": {
"deprecated": true,
"allOf": [
{
"$ref": "#/components/schemas/AuthParameters"
}
]
},
"file_format_params": {
"deprecated": true,
"allOf": [
{
"$ref": "#/components/schemas/FileFormatParams"
}
]
}
},
"required": [
@@ -5607,58 +5211,6 @@
},
"updated_at": {
"type": "string"
},
"category": {
"type": "string",
"deprecated": true
},
"credentials": {
"deprecated": true,
"allOf": [
{
"$ref": "#/components/schemas/Credentials"
}
]
},
"options": {
"deprecated": true,
"allOf": [
{
"$ref": "#/components/schemas/InputOptions"
}
]
},
"info": {
"type": "object",
"deprecated": true
},
"cron": {
"type": "string",
"deprecated": true
},
"source_bucket": {
"type": "string",
"deprecated": true
},
"source_prefix": {
"type": "string",
"deprecated": true
},
"auth_parameters": {
"deprecated": true,
"allOf": [
{
"$ref": "#/components/schemas/AuthParameters"
}
]
},
"file_format_params": {
"deprecated": true,
"allOf": [
{
"$ref": "#/components/schemas/FileFormatParams"
}
]
}
},
"required": [