The portal exposes a REST API served by FastAPI/uvicorn. Full interactive API documentation —
every endpoint, request/response schemas, and a "try it out" console — is served at /docs
(Swagger UI) and /redoc:
- https://metadata-portal.allenneuraldynamics.org/docs
- https://metadata-portal.allenneuraldynamics.org/redoc
uv sync --extra dev
uvicorn aind_metadata_viz.main:app --reloadThen visit http://localhost:8000/docs to browse and try the API locally.
There is a Dockerfile which includes the entrypoint to launch the app.
docker build -t aind-metadata-viz .
docker run -p 8000:8000 aind-metadata-viz- On pushes to the
devormainbranch, a GitHub Action will run to publish a Docker image toghcr.io/allenneuraldynamics/aind-metadata-viz:devorghcr.io/allenneuraldynamics/aind-metadata-viz:latest. - The image can be used by an ECS Service in AWS to run a task container. Application Load
Balancer can be used to serve the container from ECS. Please note that the task must be
configured with the correct env variables (e.g.
API_GATEWAY_HOST,ALLOW_WEBSOCKET_ORIGIN).