mysociety / yournextrepresentative

A website for crowd-sourcing structured election candidate data
https://candidates.democracyclub.org.uk/
GNU Affero General Public License v3.0
56 stars 21 forks source link

Update API docs for fetching a post #798

Closed andylolz closed 8 years ago

andylolz commented 8 years ago

I find django rest framework a bit baffling… But routes like /api/posts/[post_id]/ seem to work, whereas /api/posts/?extra__slug=[post_id] just return the index (i.e. the post_id is ignored).

I think other bits on this page could be updated too… Mostly replacing “constituency” with “post”.

mhl commented 8 years ago

Thanks, @andylolz - this documentation dated from a previous incarnation of the DRF-based API which handled post IDs in a broken way. I've cherry-picked this as 1751a457cbdfec.