Skip to content

Instantly share code, notes, and snippets.

@svperfecta
Created June 4, 2014 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save svperfecta/1b876b5324bc32d7e09c to your computer and use it in GitHub Desktop.
Save svperfecta/1b876b5324bc32d7e09c to your computer and use it in GitHub Desktop.
Channel API
{
schedules : [
{
name: 'logogarden',
content: [
{
type: 'imageList',
images: [
{
type: image
.. custom properties ..
}
]
.. custom properties ..
},
{
type: 'snippet',
.. custom properties ..
}
]
},
{
name: 'blog',
content: [
{
type: 'aticle',
.. custom properties ..
}
]
}
],
schema: {
image: {
... specification of image type ...
},
snippet: {
... specification of image type ...
}
}
}
Note: Schema is optional, you can request it as part of the API call if desired
@blainsmith
Copy link

I feel like 'channels' makes more sense than 'schedules' or is this gist representing a single channel that has multiple schedules?

@kixxauth
Copy link

kixxauth commented Jun 5, 2014

channel probably makes more sense to the developer who is consuming the API, but the schedule makes more sense, and is more useful metaphor for content creators. I think that model will make more sense to developers too, in the long run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment