Skip to content

lsst-epo/astro-object-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Astro Object DB API

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.

Endpoint

https://us-central1-skyviewer.cloudfunctions.net/astro-objects-api

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   
    }
} 

Deployment

Run the following command:

gcloud functions deploy astro-objects-api --runtime nodejs14 --trigger-http --allow-unauthenticated

The following environment variables must also be provided in the GCP console:

  • DB_USER
  • DB_PASS
  • DB_NAME
  • DB_HOST

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published