{ "$schema": "http://json-schema.org/draft-04/hyper-schema", "title": "Post", "definitions": { "id": { "description": "unique identifier of post", "example": "01234567-89ab-cdef-0123-456789abcdef", "format": "uuid", "type": [ "string" ] }, "identity": { "$ref": "/schemata/post#/definitions/id" }, "created_at": { "description": "when post was created", "example": "2012-01-01T12:00:00Z", "format": "date-time", "type": [ "string" ] }, "updated_at": { "description": "when post was updated", "example": "2012-01-01T12:00:00Z", "format": "date-time", "type": [ "string" ] } }, "description": "FIXME", "links": [ { "description": "Create a new post.", "href": "/posts", "method": "POST", "rel": "create", "schema": { "properties": { }, "type": [ "object" ] }, "title": "Create" }, { "description": "Delete an existing post.", "href": "/posts/{(%2Fschemata%2Fpost%23%2Fdefinitions%2Fidentity)}", "method": "DELETE", "rel": "destroy", "title": "Delete" }, { "description": "Info for existing post.", "href": "/posts/{(%2Fschemata%2Fpost%23%2Fdefinitions%2Fidentity)}", "method": "GET", "rel": "self", "title": "Info" }, { "description": "List existing posts.", "href": "/posts", "method": "GET", "rel": "instances", "title": "List" }, { "description": "Update an existing post.", "href": "/posts/{(%2Fschemata%2Fpost%23%2Fdefinitions%2Fidentity)}", "method": "PATCH", "rel": "update", "schema": { "properties": { }, "type": [ "object" ] }, "title": "Update" } ], "properties": { "created_at": { "$ref": "/schemata/post#/definitions/created_at" }, "id": { "$ref": "/schemata/post#/definitions/id" }, "updated_at": { "$ref": "/schemata/post#/definitions/updated_at" } }, "type": [ "object" ], "id": "schemata/post" }