Skip to content

Instantly share code, notes, and snippets.

@andrewjmead
Last active February 3, 2016 13:14
Show Gist options
  • Select an option

  • Save andrewjmead/c0d8ec0c3396119202eb to your computer and use it in GitHub Desktop.

Select an option

Save andrewjmead/c0d8ec0c3396119202eb to your computer and use it in GitHub Desktop.
Shena - Company Tickets
// GET /companies/:companyId/tickets
{
company: {
name: 'Some LLC'
// Other company fields
},
tickets: [{
id: 1,
userId: 23
// Other ticket fields
}, {
id: 28,
userId: 29
}];
}
// GET /companies/:companyId/tickets?user=2,79,23
{
company: {
name: 'Some LLC'
// Other company fields
},
tickets: [{
id: 1,
userId: 23
// Other ticket fields
}];
}
// GET /companies/:companyId
{
company: {
name: 'Some LLC'
// Other company fields
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment