Spectra Web Services¶
GET
/api/v0.1/spectra/{planet_name}/plot
¶Get curated Spectra plots for particular exoplanet
Get the archive webservice to request curated spectra for a given exoplanet.
- Parameters
planet_name (string) – Exoplanet name or id
- Query Parameters
embed (string) – This flag tells the request render a html page or return components to embed
- Status Codes
200 OK – Bokeh spectra plots or JSON with plots and information
422 Unprocessable Entity – Validation Error
GET
/api/v0.1/spectra/{planet_name}/file/{filename}/
¶Get the Spectra datafile
Get a States datafile off of the filesystem and retrieves it for the caller. This is used in the UI when a user wants to retrieve the source data for one of our spectra plots.
- Parameters
planet_name (string) –
filename (string) –
- Status Codes
200 OK – text/plain file with the data
422 Unprocessable Entity – Validation Error
GET
/api/v0.1/spectra/{planet_name}/filelist
¶Get the list of Spectra datafiles
Get a list of available datafiles for a given planet. The user may then call the /file/ method to retrieve the data.
- Parameters
planet_name (string) – Exoplanet name or id
- Status Codes
200 OK – list of filenames with newlines in between
404 Not Found – Planet not found.
422 Unprocessable Entity – Validation Error