diff --git a/Earthfile b/Earthfile index d23148cb09..ac7dab33a8 100644 --- a/Earthfile +++ b/Earthfile @@ -12,6 +12,7 @@ ARG SEARCH_VERSION=v2.1.0 ARG ORCHESTRATION_VERSION=v2.4.0 ARG RECONCILIATION_VERSION=v2.2.1 ARG GATEWAY_VERSION=v2.1.0 +ARG TRANSACTIONS_VERSION=b3299f19ef3f66c74f353232095854624206409f sources: FROM core+base-image @@ -43,6 +44,7 @@ build-final-spec: RUN curl -L https://github.com/formancehq/wallets/releases/download/${WALLETS_VERSION}/openapi.yaml -o wallets.openapi.yaml RUN curl -L https://github.com/formancehq/reconciliation/releases/download/${RECONCILIATION_VERSION}/openapi.yaml -o reconciliation.openapi.yaml RUN curl -L https://github.com/formancehq/flows/releases/download/${ORCHESTRATION_VERSION}/openapi.yaml -o orchestration.openapi.yaml + RUN curl -L https://github.com/formancehq/transactions/releases/download/${TRANSACTIONS_VERSION}/openapi.yaml -o transactions.openapi.yaml WORKDIR /src/releases RUN npm run build diff --git a/releases/base.yaml b/releases/base.yaml index 4f949017cd..cbf89a8722 100644 --- a/releases/base.yaml +++ b/releases/base.yaml @@ -51,6 +51,7 @@ tags: - name: search.v1 - name: webhooks.v1 - name: wallets.v1 + - name: transactions.v1 components: securitySchemes: @@ -97,3 +98,6 @@ x-tagGroups: - name: Reconciliation tags: - reconciliation.v1 + - name: Transactions + tags: + - transactions.v1 diff --git a/releases/openapi-merge.json b/releases/openapi-merge.json index 3c60dd26b2..b715567176 100644 --- a/releases/openapi-merge.json +++ b/releases/openapi-merge.json @@ -92,6 +92,18 @@ "dispute": { "prefix": "reconciliation" } + }, + { + "inputFile": "./../components/transactions.openapi.yaml", + "pathModification": { + "prepend": "/api/transactions" + }, + "operationSelection": { + "excludeTags": ["Health"] + }, + "dispute": { + "prefix": "transactions" + } } ], "output": "./build/generate.json"