Created
June 4, 2014 17:30
-
-
Save svperfecta/1b876b5324bc32d7e09c to your computer and use it in GitHub Desktop.
Channel API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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 |
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
I feel like 'channels' makes more sense than 'schedules' or is this gist representing a single channel that has multiple schedules?