cosmicds / cds-api

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

Allow specifying galaxy types in query #43

Closed Carifio24 closed 2 years ago

Carifio24 commented 2 years ago

This PR adds functionality for specifying which galaxy types are desired to the /hubbles_law/galaxies endpoint. The types should be given in the form they are stored in the database (Sp, E, Ir). An example query, to get only spiral galaxies, would have the form /hubbles_law/galaxies?types=Sp.

If no query types parameter is provided, all galaxies are returned, which matches the current behavior.