Skip to content

Instantly share code, notes, and snippets.

@jpmckinney
Created June 3, 2015 19:25
Show Gist options
  • Save jpmckinney/6e7d905c518d24a0b6ab to your computer and use it in GitHub Desktop.
Save jpmckinney/6e7d905c518d24a0b6ab to your computer and use it in GitHub Desktop.
Popolo `start_event` and `end_event` example.
// Old member
{
"organization_id": "house-of-commons",
"person_id": "john-doe",
"end_event": "john-doe-resigns"
}
// Resignation
{
"id": "john-doe-resigns",
"description": "John Doe resigned to spend more time with family."
}
// New member
{
"organization_id": "house-of-commons",
"person_id": "jane-doe",
"start_event": "jane-doe-substituted"
}
// Substitution
{
"id": "jane-doe-substituted",
"description": "Jane Doe is substituted for John Doe"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment