SuperTest · Schema

SuperTest Test Configuration

JSON Schema representing a SuperTest HTTP test request configuration for documentation and tooling purposes.

TestingFunctional TestingHTTP TestingNode.jsJavaScriptOpen-SourceAPI TestingIntegration TestingSuperAgentFluent API

Properties

Name Type Description
method string HTTP method for the test request
path string URL path to send the request to
headers object Request headers to set
query object Query string parameters
body object Request body payload (for POST/PUT/PATCH)
expect object Assertions to make on the response
timeout integer Request timeout in milliseconds
redirects integer Number of redirects to follow
View JSON Schema on GitHub

JSON Schema

supertest-test-config-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/supertest/main/json-schema/supertest-test-config-schema.json",
  "title": "SuperTest Test Configuration",
  "description": "JSON Schema representing a SuperTest HTTP test request configuration for documentation and tooling purposes.",
  "type": "object",
  "properties": {
    "method": {
      "type": "string",
      "enum": ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"],
      "description": "HTTP method for the test request"
    },
    "path": {
      "type": "string",
      "description": "URL path to send the request to",
      "example": "/api/users"
    },
    "headers": {
      "type": "object",
      "description": "Request headers to set",
      "additionalProperties": {
        "type": "string"
      }
    },
    "query": {
      "type": "object",
      "description": "Query string parameters",
      "additionalProperties": true
    },
    "body": {
      "description": "Request body payload (for POST/PUT/PATCH)",
      "oneOf": [
        { "type": "object" },
        { "type": "string" },
        { "type": "array" }
      ]
    },
    "expect": {
      "type": "object",
      "description": "Assertions to make on the response",
      "properties": {
        "status": {
          "type": "integer",
          "description": "Expected HTTP status code",
          "example": 200
        },
        "headers": {
          "type": "object",
          "description": "Expected response headers",
          "additionalProperties": {
            "type": "string"
          }
        },
        "body": {
          "description": "Expected response body or body field",
          "oneOf": [
            { "type": "object" },
            { "type": "string" },
            { "type": "array" }
          ]
        },
        "contentType": {
          "type": "string",
          "description": "Expected Content-Type",
          "example": "application/json"
        }
      }
    },
    "timeout": {
      "type": "integer",
      "description": "Request timeout in milliseconds",
      "default": 5000
    },
    "redirects": {
      "type": "integer",
      "description": "Number of redirects to follow",
      "default": 0
    }
  },
  "required": ["method", "path"]
}

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/supertest-test-config"
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.