The Astro Object DB is the EDC database that houses astronomical data for EPO web apps. The Data Access Protocol (DAC) for the Astro Object DB is this graphQL endpoint.
https://us-central1-skyviewer.cloudfunctions.net/astro-objects-api
This is a graphQL endpoint. The astroObjects schema accepts a single argument as a float (with no quotes).
{
astroObjects(objectId: <objectID>) {
id
ra
dec
type
distance
brightness
objectId
sourceId
}
} Run the following command:
sh deploy.shThe following environment variables must also be provided in the GCP console:
- DB_USER
- DB_PASS
- DB_NAME
- DB_HOST
- API_TOKEN