LinuxForHealth / connect-r-and-d

Linux For Health Connectors for Inbound Data Processing
Apache License 2.0
14 stars 19 forks source link

Use relative paths in LFH result messages #428

Closed ccorley closed 3 years ago

ccorley commented 3 years ago

This PR contains a number of changes:

  1. Updated the data field of the result of a POST to the Orthanc server to include the relative location of the image as stored in Orthanc, e.g.: instances/de11d211-6fcb8f9e-509b1519-5acd5d8e-7d127482/preview

  2. Added an /instances Orthanc service route to Kong that goes directly to Orthanc (the first non-connect API in Kong). This allows a REST call to Kong to retrieve original image information stored in Orthanc (with the Orthanc username and password for basic auth).

  3. Consolidated the configure-kong.sh script under container-support/oci. The compose/configure-kong.sh sources ../oci/configure-kong.sh.

  4. Removed all references to external host ip. e.g. LFH_CONNECT_EXTERNAL_HOST_IP: "127.0.0.1" because all relative urls can now be evaluated against kong.

Tested with dev and server compose profiles on amd64 and oci script on s390x.