← Winnitude! Search  ·  Reader Mode (1073 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 31 LINKS

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-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

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

./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