From 80d963f03c388af5f27c905ee9505866372069c0 Mon Sep 17 00:00:00 2001 From: Gaurav Vaidya Date: Tue, 28 Mar 2023 14:34:39 -0400 Subject: [PATCH] Added test_data_location to Server metadata. --- src/main/scala/org/renci/cam/Server.scala | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/scala/org/renci/cam/Server.scala b/src/main/scala/org/renci/cam/Server.scala index 3f1ff8fd..4d9a8ec9 100644 --- a/src/main/scala/org/renci/cam/Server.scala +++ b/src/main/scala/org/renci/cam/Server.scala @@ -155,6 +155,9 @@ object Server extends App with LazyLogging { .toYaml openAPIJson <- ZIO.fromEither(io.circe.yaml.parser.parse(openAPI)) info: String = + // TODO: note that the development URL is a reference to a file on a branch. It should be replaced with + // a file on a tag or something more stable. + // TODO: we should figure out how to separate URLs for development, production, etc. s""" { "info": { @@ -166,7 +169,12 @@ object Server extends App with LazyLogging { }, "x-trapi": { "version": "${appConfig.trapiVersion}", - "operations": [ "lookup" ] + "operations": [ "lookup" ], + "test_data_location": { + "default": { + "url": "https://raw.githubusercontent.com/ExposuresProvider/cam-kp-api/generate-test-data/src/main/resources/sri-testing.json" + } + } } } }