Skip to content

Instantly share code, notes, and snippets.

@lukfugl
Created January 26, 2009 03:25
Show Gist options
  • Save lukfugl/52683 to your computer and use it in GitHub Desktop.
Save lukfugl/52683 to your computer and use it in GitHub Desktop.
GET /YYYY/MM/DD/HH/layer -- returns label text for slot+layer
GET /YYYY/MM/DD/HH -- returns yaml/json hash of layer:label
GET /YYYY/MM/DD/layer -- returns yaml/json list of labels for the slots+layer
GET /YYYY/MM/DD -- returns yaml/json list of hashes of layer:label
PUT /YYYY/MM/DD/HH/layer -- sets label text for slot+layer (one-time)
PUT /YYYY/MM/DD/HH/layer/recurring -- sets label text for slot+layer (recurring, starting at date)
DELETE /YYYY/MM/DD/HH/layer -- clears label text for slot+layer (one-time)
DELETE /YYYY/MM/DD/HH/layer/recurring -- clears label text for slot+layer (recurring, starting at date)
Note: DELETE /YYYY/MM/DD/HH/layer/recurring doesn't "end" a recurring label that started in a previous week. to do that, PUT /YYYY/MM/DD/HH/layer/recurring for the new date and it will override the recurring event for the old date
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment