joindin/joindin-api — pull request #40 by richsage (2014-01-23 07:12:26+00:00)
Title: Talk attending status

Can't remember whether this was required or not over talk favouriting, but here goes...

This adds the ability to mark a talk as attended or not. It's pretty much based on the event attending code, so anything that happens there should happen here.

* GET request to `/talk//attending` when not authenticated, returns `false`
* GET request to `/talk//attending` when authenticated, returns the attending status for the authenticated user
* POST request to `/talk//attending` when authenticated, marks the user as attending
* DELETE request to `/talk//attending` when authenticated, marks the user as not attending

The talk output also now includes an `attending` field and an `attendee_count` field, with relevant data in it.

Frisby tests updated to include the new fields for talks.