{
"$schema": "http://json-schema.org/draft-04/schema#",
"name": "HyperJSON Request Message",
"type": "object",
"properties": {
"method": {
"type": "string"
},
"uri": {
"type": "string"
},
"body": {
"type": "object"
}
},
"required": [
"method",
"uri"
]
}
// minimal
{
method: 'GET',
uri: '/users'
}
// with an optional body included
{
method: 'POST',
uri: '/users',
body: {
name: 'Obama'
}
}
// with a query string
{
method: 'GET',
uri: '/users?name=Bush'
}