From abbe5c415bf5e34450c4c09fb1f7dde7eda22353 Mon Sep 17 00:00:00 2001 From: Jeremy Denquin Date: Tue, 19 Sep 2023 11:18:29 +0200 Subject: [PATCH] Source Getlago: Support API URL --- airbyte-integrations/connectors/source-getlago/Dockerfile | 2 +- airbyte-integrations/connectors/source-getlago/README.md | 4 ++-- .../connectors/source-getlago/metadata.yaml | 2 +- .../source-getlago/source_getlago/manifest.yaml | 2 +- .../connectors/source-getlago/source_getlago/spec.yaml | 8 +++++++- docs/integrations/sources/getlago.md | 8 ++++---- 6 files changed, 16 insertions(+), 10 deletions(-) diff --git a/airbyte-integrations/connectors/source-getlago/Dockerfile b/airbyte-integrations/connectors/source-getlago/Dockerfile index 8c1e400964bb..cf93a2a17967 100644 --- a/airbyte-integrations/connectors/source-getlago/Dockerfile +++ b/airbyte-integrations/connectors/source-getlago/Dockerfile @@ -34,5 +34,5 @@ COPY source_getlago ./source_getlago ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py" ENTRYPOINT ["python", "/airbyte/integration_code/main.py"] -LABEL io.airbyte.version=0.1.0 +LABEL io.airbyte.version=0.2.0 LABEL io.airbyte.name=airbyte/source-getlago diff --git a/airbyte-integrations/connectors/source-getlago/README.md b/airbyte-integrations/connectors/source-getlago/README.md index fd1225f162b0..353b101b5ad5 100644 --- a/airbyte-integrations/connectors/source-getlago/README.md +++ b/airbyte-integrations/connectors/source-getlago/README.md @@ -1,6 +1,6 @@ -# Getlago Source +# Lago Source -This is the repository for the Getlago configuration based source connector. +This is the repository for the Lago configuration based source connector. For information about how to use this connector within Airbyte, see [the documentation](https://docs.airbyte.io/integrations/sources/getlago). ## Local development diff --git a/airbyte-integrations/connectors/source-getlago/metadata.yaml b/airbyte-integrations/connectors/source-getlago/metadata.yaml index 539d110e928a..d602dc98f6ed 100644 --- a/airbyte-integrations/connectors/source-getlago/metadata.yaml +++ b/airbyte-integrations/connectors/source-getlago/metadata.yaml @@ -7,7 +7,7 @@ data: githubIssueLabel: source-getlago icon: getlago.svg license: MIT - name: GetLago + name: Lago registries: cloud: enabled: true diff --git a/airbyte-integrations/connectors/source-getlago/source_getlago/manifest.yaml b/airbyte-integrations/connectors/source-getlago/source_getlago/manifest.yaml index 13accde4d905..df368b75d0e4 100644 --- a/airbyte-integrations/connectors/source-getlago/source_getlago/manifest.yaml +++ b/airbyte-integrations/connectors/source-getlago/source_getlago/manifest.yaml @@ -5,7 +5,7 @@ definitions: extractor: field_path: ["{{ parameters['name'] }}"] requester: - url_base: "https://api.getlago.com/api/v1" + url_base: "{{ config['api_url'] }}" http_method: "GET" authenticator: type: BearerAuthenticator diff --git a/airbyte-integrations/connectors/source-getlago/source_getlago/spec.yaml b/airbyte-integrations/connectors/source-getlago/source_getlago/spec.yaml index 2f9d5311e536..e5cad2ad7bfc 100644 --- a/airbyte-integrations/connectors/source-getlago/source_getlago/spec.yaml +++ b/airbyte-integrations/connectors/source-getlago/source_getlago/spec.yaml @@ -1,12 +1,18 @@ documentationUrl: https://docs.airbyte.com/integrations/sources/getlago connectionSpecification: $schema: http://json-schema.org/draft-07/schema# - title: Getlago Spec + title: Lago Spec type: object required: + - api_url - api_key additionalProperties: true properties: + api_url: + title: API Url + type: string + description: Your Lago API URL + default: https://api.getlago.com/api/v1 api_key: title: API Key type: string diff --git a/docs/integrations/sources/getlago.md b/docs/integrations/sources/getlago.md index 056ad3c566c8..1cb048a38465 100644 --- a/docs/integrations/sources/getlago.md +++ b/docs/integrations/sources/getlago.md @@ -1,8 +1,8 @@ -# getLago API +# Lago API ## Sync overview -This source can sync data from the [getLago API](https://doc.getlago.com/docs/guide/intro/welcome). At present this connector only supports full refresh syncs meaning that each time you use the connector it will sync all available records from scratch. Please use cautiously if you expect your API to have a lot of records. +This source can sync data from the [Lago API](https://doc.getlago.com/docs/guide/intro/welcome). At present this connector only supports full refresh syncs meaning that each time you use the connector it will sync all available records from scratch. Please use cautiously if you expect your API to have a lot of records. ## This Source Supports the Following Streams @@ -25,8 +25,8 @@ This source can sync data from the [getLago API](https://doc.getlago.com/docs/gu ## Getting started ### Requirements - -* getLago API KEY +* Lago API URL +* Lago API KEY ## Changelog