From 8c7b2741e7921065e6c401e55c37bc704a47dd2e Mon Sep 17 00:00:00 2001 From: Nordine Bittich <3816305+nbittich@users.noreply.github.com> Date: Tue, 21 Sep 2021 15:28:41 +0200 Subject: [PATCH] add privacy centric service (#47) * add privacy centric service --- config/dispatcher/dispatcher.ex | 8 ++++++++ config/migrations/20210729182257-reason-code.ttl | 14 ++++++++++++++ docker-compose.yml | 12 +++++++++--- 3 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 config/migrations/20210729182257-reason-code.ttl diff --git a/config/dispatcher/dispatcher.ex b/config/dispatcher/dispatcher.ex index e908fb1..90d0f6d 100644 --- a/config/dispatcher/dispatcher.ex +++ b/config/dispatcher/dispatcher.ex @@ -242,6 +242,14 @@ defmodule Dispatcher do forward conn, path, "http://adressenregister/" end + match "/person-information-updates/*path", %{ layer: :api_services, accept: %{ json: true } } do + forward conn, path, "http://privacy/person-information-updates" + end + + match "/person-information-requests/*path", %{ layer: :api_services, accept: %{ json: true } } do + forward conn, path, "http://privacy/person-information-requests" + end + ############################################################### # frontend layer diff --git a/config/migrations/20210729182257-reason-code.ttl b/config/migrations/20210729182257-reason-code.ttl new file mode 100644 index 0000000..9c72a26 --- /dev/null +++ b/config/migrations/20210729182257-reason-code.ttl @@ -0,0 +1,14 @@ + a , + ; + "3aeec145-acf3-4b6e-9c00-5b8e285736e0"; + "In het kader van een samenwerkingsovereenkomst". + + a , + ; + "3beec145-acf3-4b6e-9c00-5b8e285736e1"; + "Aanpassen van gegevens". + + a , + ; + "3beec145-acf3-4b6e-9c00-5b8e285736e2"; + "Andere reden". diff --git a/docker-compose.yml b/docker-compose.yml index b201b40..35d6832 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -137,7 +137,13 @@ services: logging: *default-logging links: - db:database - - + privacy: + image: lblod/privacy-centric-service:0.0.1 + environment: + SERVER_PORT: "80" + SPARQL_ENDPOINT: "http://db:8890/sparql" + LOGGING_LEVEL: "INFO" + DEFAULT_GRAPH: "http://mu.semte.ch/graphs/contacthub/141d9d6b-54af-4d17-b313-8d1c30bc3f5b/ChAdmin" + SESSION_GRAPH: "http://mu.semte.ch/graphs/sessions" adressenregister: - image: lblod/adressenregister-fuzzy-search-service:0.5.0 \ No newline at end of file + image: lblod/adressenregister-fuzzy-search-service:0.5.0 \ No newline at end of file