« Search  |  Retro Site View (Experimental)  |  Switch to Reader Mode Images: 56K  |  Retro Mode: ON  |  Original Site »
GitHub   (github.com · converted in 1331 ms)
Sections: Homepage  |  Actions CI/CD and automation  |  All Features  |  Documentation  |  Training  |  Certifications  |  Build with Copilot  |  Customize Copilot  |  Integrations  |  Trending repos  |  GitHub Sponsors  |  Developer articles  |  Enterprises  |  Small and medium teams  |  Startups  |  Nonprofits

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.

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


Permalink: HyperJSON Request Message

Version 0.0.1


Permalink: Version 0.0.1

Prerequisites


Permalink: Prerequisites

Schema


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


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