zooniverse / panoptes

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

Include owner with project responses #453

Closed brian-c closed 9 years ago

brian-c commented 9 years ago

I can't think of an instance where we're showing a project without its owner's name and a link to its profile. Can we get owner added to the project include-ables list?

Currently :owner is not a valid include for Project when I try to get /projects/73?include=owner.

Possibly related to #451.

edpaget commented 9 years ago

Does it work if you do "owners". I did some work on this, but Restpack is weird about pluralization.

brian-c commented 9 years ago

There ya go. Thanks.

brian-c commented 9 years ago

Actually, it returns with the user in an owners key, so I have no way of picking it apart as a user. Should it come back under a users key, since its link from the project is type: 'users'?

edpaget commented 9 years ago

I don't think there's a good way to do that. I can return a type key inside the owner response?

brian-c commented 9 years ago

Yeah, that'll work.