From cd37d596c1857f8cdcf7c11c4f78a08b957ea32e Mon Sep 17 00:00:00 2001 From: Sam Van Campenhout Date: Mon, 18 Oct 2021 10:17:10 +0200 Subject: [PATCH] Enable the uri-info service again (#57) This allows us to retrieve the rdf type and uuid of a resource uri. --- config/dispatcher/dispatcher.ex | 4 ++++ docker-compose.dev.yml | 2 ++ docker-compose.yml | 8 ++++++++ 3 files changed, 14 insertions(+) diff --git a/config/dispatcher/dispatcher.ex b/config/dispatcher/dispatcher.ex index 2f1b220..7544274 100644 --- a/config/dispatcher/dispatcher.ex +++ b/config/dispatcher/dispatcher.ex @@ -243,6 +243,10 @@ defmodule Dispatcher do forward conn, path, "http://privacy/person-information-requests" end + get "/uri-info/*path", %{ layer: :api_services, accept: %{ json: true } } do + forward conn, path, "http://uri-info/" + end + ############################################################### # frontend layer diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 6a71303..173bfbe 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -35,3 +35,5 @@ services: restart: "no" frontend: restart: "no" + uri-info: + restart: "no" diff --git a/docker-compose.yml b/docker-compose.yml index a513537..fc7e499 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -146,3 +146,11 @@ services: EMBER_OAUTH_API_LOGOUT_URL: "https://authenticatie-ti.vlaanderen.be/op/v1/logout" EMBER_OAUTH_API_SCOPE: "openid vo profile abb_organisatieportaal" restart: always + uri-info: + image: redpencil/mu-uri-info-service:0.2.1 + labels: + - "logging=true" + restart: always + logging: *default-logging + links: + - db:database \ No newline at end of file