Skip to content

Instantly share code, notes, and snippets.

@koos
Created August 30, 2011 11:30
Show Gist options
  • Select an option

  • Save koos/1180703 to your computer and use it in GitHub Desktop.

Select an option

Save koos/1180703 to your computer and use it in GitHub Desktop.
json schema
{
"type": "object",
"title": "user",
"description": "a user",
"properties": {
"id": {
"type": "string",
"description": "The User Id",
"identity": true,
"required": true,
"readonly": true
},
"user_photo_url": {
"type": "string",
"description": "User's Profile Picture - 130x130",
"format": "uri"
},
"name": {
"type": "string",
"description": "User's first name and first letter of last name"
}
},
"links":[
{ "rel": "self",
"href": "users/{slug}"
},
{
"rel": "self",
"href": "users/{slug}/favorites"
},
{
"rel": "instances",
"href": "users",
"properties": {
"search[name]": {
"title": "Name",
"description": "The User's Name of your search",
"type": "string"
},
"search[id]": {
"title": "ID",
"description": "The User's ID of your search",
"type": "integer"
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment