karma-exchange-org/karma-exchange — pull request #24 by avaliani (2013-05-20 21:13:58+00:00)
Title: Create event/<key>/participants resource.

Added participant view CRUD for all types of participants

Details:
- Supports pagination.
- Transactional.
- Organizers can manipulate any list and the limits for the event are not enforced. Limits are only enforced when non-organizers try to add themselves to the registered user list or the wait list.

GET
/event//participants/ORGANIZER?limit=N
/event//participants/REGISTERED?limit=N
/event//participants/WAIT_LISTED?limit=N

POST
/event//participants/ORGANIZER?user=key
/event//participants/REGISTERED?user=key
/event//participants/WAIT_LISTED?user=key

DELETE
/event//participants?user=key

Param details:
- user defaults to me if not specified
- next url will be available if there are more users. Use the limit to minimize the number of fetches of user objects.