UW-Macrostrat / macrostrat-api

The API for SCIENCE
3 stars 1 forks source link

querying multiple liths on /units route #86

Closed jonhusson closed 9 years ago

jonhusson commented 9 years ago

It would helpful if the units route could accept comma-separated lists of lithologies, and return unique units that has at least one of the liths:

EXAMPLE: units?lith=shale,siltstone,mudstone

thanks!

jczaplew commented 9 years ago

Should be fixed now. You can now specify one or many lith, lith_class, lith_type, environ, environ_class, environ_type, econ, econ_class, and econ_type.

Let me know if you'd like to pass multiple strings elsewhere!