zooniverse / panoptes

Zooniverse API to support user defined volunteer research projects
Apache License 2.0
103 stars 41 forks source link

Querying /api/subject_sets?workflow_id=20 returns too many #338

Closed brian-c closed 9 years ago

brian-c commented 9 years ago

I created workflow "20" with one subject set. I get (possibly all?) 16 in response.

Since a workflow has a list of its subject sets' IDs, should the link actually be more directly /subject_sets/{workflows.subject_sets} instead of a query?

edpaget commented 9 years ago

RestPack automatically makes has_many links use the query param format. I can look into making it support the other format if you prefer. This will be fixed when I resolve #148