Open api proxy server to aggregate specs of similar infores and trapi versions into single openapi spec for smartapi registration.
Create or Edit servers.json
with list of servers
["https://automat.ci.transltr.io/ctd/1.3/openapi.json",
"https://automat.test.transltr.io/ctd/1.3/openapi.json",
"https://automat.transltr.io/ctd/1.3/openapi.json",
"https://automat.renci.org/ctd/1.3/openapi.json"]
If these servers have matching infores and trapi versions they will aggregated as a single openapispec.
- Install dependencies:
pip install -r requirements.txt
- Run Webserver:
uvicorn --port 8080 src.server:app
Run via docker run
docker run --rm --name agg-server -p 8080:8080 -v servers.json:/code/server.json ghcr.io/translatorsri/trapi-openapi-aggregator:latest