Skip to content

Instantly share code, notes, and snippets.

@ikwattro
Created August 16, 2012 12:26
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 ikwattro/3369821 to your computer and use it in GitHub Desktop.
Save ikwattro/3369821 to your computer and use it in GitHub Desktop.
API Output
{
"template": {
"method": "POST",
"fields" : {
"chipnumber": {
"type": "alfanum",
"required": "true",
},
"name": {
"type": "alfanum",
"required": "true"
},
"birthdate": {
"type": "date"
}
}
}
{
"_self": "http://localhost/api.doggiiz.lo/kennels/3/mas-de-beauvoisin/",
"links": {
"dogs": "http://localhost/api.doggiiz.lo/kennels/3/mas-de-beauvoisin/dogs/",
"owner": "http://localhost/api.doggiiz.lo/users/19/arielle-durigneux/",
"year": "1976",
"location": "Belgium"
},
"actions": {
"new_dog": {
"template": "http://localhost/api.doggiiz.lo/kennels/3/mas-de-beauvoisin/newdog",
},
"new_result": {
"template": "http://localhost/api.doggiiz.lo/kennels/3/mas-de-beauvoisin/newresult"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment