- copy schema.yml into this repo
- python -m venv venv
- activate venv
- pip install openapi-python-client
- openapi-python-client generate --path schema.yml --overwrite --custom-template-path=templates
- python -m venv venv
- activate venv
- pip install ./moles-api-v-3-client
Scripts directory contains fwe of the scripts from ingest machines recreated to use API approach.
Most of them require endpoint and access token as environmental vars e.g.
export API_URL="http://localhost:8000/"
export API_TOKEN="exampleaccesstoken452708945279"