Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit 452709d

Browse files
committed
Added test_data_location to Server metadata.
1 parent ee68de2 commit 452709d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/main/scala/org/renci/cam/Server.scala

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ object Server extends App with LazyLogging {
155155
.toYaml
156156
openAPIJson <- ZIO.fromEither(io.circe.yaml.parser.parse(openAPI))
157157
info: String =
158+
// TODO: note that the development URL is a reference to a file on a branch. It should be replaced with
159+
// a file on a tag or something more stable.
160+
// TODO: we should figure out how to separate URLs for development, production, etc.
158161
s"""
159162
{
160163
"info": {
@@ -166,7 +169,12 @@ object Server extends App with LazyLogging {
166169
},
167170
"x-trapi": {
168171
"version": "${appConfig.trapiVersion}",
169-
"operations": [ "lookup" ]
172+
"operations": [ "lookup" ],
173+
"test_data_location": {
174+
"default": {
175+
"url": "https://raw.githubusercontent.com/ExposuresProvider/cam-kp-api/generate-test-data/src/main/resources/sri-testing.json"
176+
}
177+
}
170178
}
171179
}
172180
}

0 commit comments

Comments
 (0)