Skip to content

Instantly share code, notes, and snippets.

@vlucas
Created May 28, 2012 21:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vlucas/2821212 to your computer and use it in GitHub Desktop.
Save vlucas/2821212 to your computer and use it in GitHub Desktop.
{
"page":1,
"actions":{
"add":{
"url":"http://localhost:3000/events.json",
"method":"post",
"fields":{
"category_id":{
"type":"integer",
"length":null,
"required":false
},
"name":{
"type":"string",
"length":255,
"required":true
},
"date_start":{
"type":"date",
"length":null,
"required":true
},
"date_end":{
"type":"date",
"length":null,
"required":false
},
"time_info":{
"type":"string",
"length":255,
"required":false
},
"description":{
"type":"text",
"length":null,
"required":false
}
}
}
},
"data":[
{
"id":3,
"name":"Kickoff Meeting",
"description":"<p>\r\n\tKickoff meeting for summer 2012. This is a <strong>mandatory</strong> meeting for all workers, staff, and volunteers.</p>\r\n",
"date_start":"2012-06-06",
"date_end":null,
"actions":{
"view":{
"url":"http://localhost:3000/events/3.json",
"method":"get"
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment