GitHub - HyperJSON/HyperJSON-Request: JSON Schema that closely resembles an HTTP Request Message but is completely decoupled from any specific application protocol, such as HTTP.
Repository navigation
HyperJSON-RequestPublic
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 propertiesStars
0 starsWatchers
1 watchingForks
1 fork Report repositoryBranches
Tags
Go to Branches page Go to Tags page
Latest commit
History
4 Commits
View commit history for this file.
Folders and files
| Name | Name | Last commit message | Last commit date |
|---|---|---|---|
| README.md | README.md | ||
| package.json | package.json | ||
| request-schema.json | request-schema.json | ||
| test.js | test.js | ||
Repository files navigation
HyperJSON Request Message
Version 0.0.1
Prerequisites
Schema
{
"$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.