REST · Schema

REST API

A schema representing the key properties and constraints of a RESTful API following the Representational State Transfer architectural style.

API DesignArchitectureHTTPRESTRESTfulWeb Services

Properties

Name Type Description
name string The name of the REST API.
description string A description of the API's purpose and capabilities.
version string The version of the API.
baseUrl string The base URL of the API server.
resources array The resources exposed by the API.
authentication object Authentication scheme used by the API.
formats array Content formats supported by the API.
View JSON Schema on GitHub

JSON Schema

rest-api-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://github.com/api-evangelist/rest/json-schema/rest-api-schema.json",
  "title": "REST API",
  "description": "A schema representing the key properties and constraints of a RESTful API following the Representational State Transfer architectural style.",
  "type": "object",
  "required": ["baseUrl", "resources"],
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the REST API."
    },
    "description": {
      "type": "string",
      "description": "A description of the API's purpose and capabilities."
    },
    "version": {
      "type": "string",
      "description": "The version of the API.",
      "examples": ["1.0.0", "2.1.0", "v3"]
    },
    "baseUrl": {
      "type": "string",
      "format": "uri",
      "description": "The base URL of the API server."
    },
    "resources": {
      "type": "array",
      "description": "The resources exposed by the API.",
      "items": {
        "$ref": "#/$defs/Resource"
      }
    },
    "authentication": {
      "type": "object",
      "description": "Authentication scheme used by the API.",
      "properties": {
        "type": {
          "type": "string",
          "enum": ["none", "apikey", "bearer", "basic", "oauth2"],
          "description": "The authentication mechanism."
        }
      }
    },
    "formats": {
      "type": "array",
      "description": "Content formats supported by the API.",
      "items": {
        "type": "string",
        "examples": ["application/json", "application/xml", "text/html"]
      }
    }
  },
  "$defs": {
    "Resource": {
      "type": "object",
      "required": ["path"],
      "description": "A named information resource identified by a URI path.",
      "properties": {
        "name": {
          "type": "string",
          "description": "The resource name."
        },
        "path": {
          "type": "string",
          "description": "The URI path pattern (may include {parameter} templates)."
        },
        "methods": {
          "type": "array",
          "description": "HTTP methods supported by this resource.",
          "items": {
            "type": "string",
            "enum": ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]
          }
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/rest-api"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.