Repository navigation
HyperJSON-Request
Public
About
JSON Schema that closely resembles an HTTP Request Message but is completely decoupled from any specific application protocol, such as HTTP.
Resources
Readme
Activity
Custom properties
Stars
0 stars
Watchers
1 watching
Forks
1 fork
Report repository
Branches
Tags
Go to Branches page Go to Tags page
Latest commit
History
4 Commits
View commit history for this file.
Folders and files
Repository files navigation
HyperJSON Request Message
Version 0.0.1
Prerequisites
Schema
./request-schema.json
{
"$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"
]
}
Valid Samples
// 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'
}
About
JSON Schema that closely resembles an HTTP Request Message but is completely decoupled from any specific application protocol, such as HTTP.
Resources
Readme
Activity
Custom properties
Stars
0 stars
Watchers
1 watching
Forks
1 fork
Report repository
Releases
Packages
Contributors
Languages