Skip to content

Instantly share code, notes, and snippets.

@dmachi
Created January 5, 2011 04:17
Show Gist options
  • Save dmachi/765916 to your computer and use it in GitHub Desktop.
Save dmachi/765916 to your computer and use it in GitHub Desktop.
schema with relations
{
"properties": {
"state": {
"type": "string",
"indexed": true
},
"description": {
"type": "string",
"optional": true
},
"shareType": {
"type": "string",
"default": "public"
},
"creatorId": {
"type": "string",
"readonly": true
},
"ownerId": {
"type": "string"
},
"createdOn": {
"type": "date",
"readonly": true
},
"updatedOn": {
"type": "date"
}
},
"prototype": {},
"links": [{
"rel": "history",
"href": "/ProjectChange/?projectId={id}"},
{
"rel": "creator",
"href": "/User/{creatorId}"},
{
"rel": "owner",
"href": "/User/{ownerId}"},
{
"rel": "triggers",
"href": "/Trigger/?projectId={id}",
"targetSchema": {
"$ref": "../Trigger"
}}],
"id": "Project"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment