The HEROIC application aims to store telescope status and instrument capabilities and provide an API for querying that data in different ways.
This application provides an API for creating and getting telescope and instrument information. The expected usage of the API for initially setting up Telescope includes:
- POST observatory info to
/api/observatories/
- POST site info to
/api/sites/
for that observatory - POST telescope info to
/api/telescopes/
for that site, including status info if you want - POST instrument info to
/api/instruments/
for that telescope, including current instrument capabilities
Then once a telescope and instrument are set up, periodic updates can be sent for their status and capabilities through the API:
- POST new telescope status updates to
/api/telescopes/<telescope_id>/status/
as needed - POST new instrument capabilities updates to
/api/instruments/<instrument_id>/capabilities/
as needed.
This project uses poetry for dependency management. To develop with this project run:
poetry install
poetry run python manage.py migrate
poetry run python manage.py runserver
Unit tests can be run with:
poetry run python manage.py test