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