mysociety / popit-api

DEPRECATED - Development on PopIt has stopped and it is no longer being maintained
https://goo.gl/Vvej4Q
Other
17 stars 3 forks source link

Allow embed=membership.post #111

Closed tfgg closed 9 years ago

tfgg commented 9 years ago

I'd like to be able to pull out all the details about someone's candidacies from their popit doc, e.g.

https://yournextmp.popit.mysociety.org/api/v0.1/persons/4427?embed=membership.organization

As it stands, if the document didn't have the extra data put in by yournextmp, I'd have to make another query to get the constituency (area). If I could also ask for membership.post to be embedded, I'd be able to get that data.