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

Commit

Permalink
Added test_data_location to Server metadata.
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav committed Mar 28, 2023
1 parent c800447 commit 80d963f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/main/scala/org/renci/cam/Server.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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"
}
}
}
}
}
Expand Down

0 comments on commit 80d963f

Please sign in to comment.