AntelopeLCA / xdb

Exchange database
1 stars 0 forks source link

xdb

Antelope Exchange database

This is a REST HTTP server for hosting LCA data according to the Antelope interface. This repo contains a deployable antelope server that is exposed via a REST API. All the exchange data are static, so a REST model is appropriate.

The server is linked to an authentication and authorization mechanism that would evaluate each request in terms of the requester's access level. Every query must be accompanied by an authorization token that has been computed as indicated in xdb_tokens.py.

Run the server

The From the root directory, run:

$ MASTER_ISSUER=ANTELOPE_AUTHORITY XDB_CATALOG_ROOT=/data/LCI/xdb_8000\
   XDB_DATA_ROOT=/data/LCI/aws-data uvicorn api:app --host 0.0.0.0 --port 8000 --reload

config

The default initialized xdb server runs a standard LcCatalog with a local qdb. Resources are added to the catalog through etl. A default self-standing initialization would:

API spec

See api/antelope_api.md