From 6fc6810218844716e401c4090311e209fcf6cc60 Mon Sep 17 00:00:00 2001 From: Wilco Louwerse Date: Fri, 14 Jun 2024 18:00:10 +0200 Subject: [PATCH] Set federationProxies for federated endpoint with installation.json Because they will not be set correctly if done otherwise, they would just be empty. As result you would have to update this endpoint manually after initalization --- .../Endpoint/federation.endpoint.json | 26 ----------------- Installation/installation.json | 29 +++++++++++++++++++ 2 files changed, 29 insertions(+), 26 deletions(-) delete mode 100644 Installation/Endpoint/federation.endpoint.json diff --git a/Installation/Endpoint/federation.endpoint.json b/Installation/Endpoint/federation.endpoint.json deleted file mode 100644 index 43c7fcdf..00000000 --- a/Installation/Endpoint/federation.endpoint.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "title": "Federated endpoint", - "description": "Endpoint that does a federated search over multiple sources", - "$id": "https://opencatalogi.nl/endpoints/federation.endpoint.json", - "$schema": "https://docs.commongateway.nl/schemas/Endpoint.schema.json", - "version": "0.0.1", - "pathRegex": "^oc/federation/?[^.*]*?$", - "methods": ["GET"], - "path": [ - "oc", - "federation", - "{route}" - ], - "loggingConfig": { - "headers": [ - "authorization" - ] - }, - "operationType": "GET", - "defaultContentType": "application/json", - "reference": "https://opencatalogi.nl/sources/oc.developeroverheid.federated.source.json", - "federationProxies": [ - "https://opencatalogi.nl/sources/oc.developeroverheid.federated.source.json", - "https://opencatalogi.nl/sources/oc.componentencatalogus.federated.source.json" - ] -} diff --git a/Installation/installation.json b/Installation/installation.json index 00ac96c8..9712e053 100644 --- a/Installation/installation.json +++ b/Installation/installation.json @@ -48,6 +48,35 @@ "methods": ["GET"] } ], + "sources": [ + { + "$id": "https://opencatalogi.nl/endpoints/federation.endpoint.json", + "name": "OpenCatalogi Federated endpoint", + "description": "Endpoint that does a federated search over multiple OpenCatalogi sources", + "path": [ + "oc", + "federation", + "{route}" + ], + "pathRegex": "^oc/federation/?[^.*]*?$", + "methods": [ + "GET" + ], + "version": "0.0.1", + "loggingConfig": { + "headers": [ + "authorization" + ] + }, + "operationType": "GET", + "defaultContentType": "application/json", + "reference": "https://opencatalogi.nl/sources/oc.developeroverheid.federated.source.json", + "federationProxies": [ + "https://opencatalogi.nl/sources/oc.developeroverheid.federated.source.json", + "https://opencatalogi.nl/sources/oc.componentencatalogus.federated.source.json" + ] + } + ], "schemas": [ { "reference": "https://opencatalogi.nl/oc.component.schema.json",