cosmicds / cds-api

API for accessing the CosmicDS database
GNU General Public License v3.0
0 stars 3 forks source link

Add Hubble's Law endpoint for getting spectrum data #41

Closed Carifio24 closed 2 years ago

Carifio24 commented 2 years ago

This PR adds a /hubbles_law/spectra/:type/:name endpoint that we can GET to retrieve the FITS data for the given spectrum. This endpoint just redirects to the appropriate object in our AWS S3 bucket, but this way, if we need to do any additional handling of parameters in the future, we can do it here.