REST Assured · Schema

REST Assured Request Specification

Schema for a REST Assured HTTP request specification, representing the given() clause of a REST Assured test.

Functional TestingTestingJavaAPI TestingAutomation

Properties

Name Type Description
baseUri string The base URI for the API under test.
basePath string The base path appended to the base URI.
port integer The port number for the API under test.
headers object HTTP headers to include in the request.
queryParameters object Query parameters to append to the request URL.
pathParameters object Path parameter values for URI templates.
body object The request body payload.
contentType string The Content-Type header value for the request body.
accept string The Accept header value specifying the desired response format.
authentication object
cookies object Cookies to send with the request.
timeout integer Connection timeout in milliseconds.
View JSON Schema on GitHub

JSON Schema

rest-assured-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rest-assured.io/schemas/request",
  "title": "REST Assured Request Specification",
  "description": "Schema for a REST Assured HTTP request specification, representing the given() clause of a REST Assured test.",
  "type": "object",
  "properties": {
    "baseUri": {
      "type": "string",
      "format": "uri",
      "description": "The base URI for the API under test."
    },
    "basePath": {
      "type": "string",
      "description": "The base path appended to the base URI."
    },
    "port": {
      "type": "integer",
      "minimum": 1,
      "maximum": 65535,
      "description": "The port number for the API under test."
    },
    "headers": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "HTTP headers to include in the request."
    },
    "queryParameters": {
      "type": "object",
      "additionalProperties": {
        "oneOf": [
          { "type": "string" },
          { "type": "number" },
          { "type": "boolean" }
        ]
      },
      "description": "Query parameters to append to the request URL."
    },
    "pathParameters": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Path parameter values for URI templates."
    },
    "body": {
      "description": "The request body payload.",
      "oneOf": [
        { "type": "object" },
        { "type": "array" },
        { "type": "string" }
      ]
    },
    "contentType": {
      "type": "string",
      "description": "The Content-Type header value for the request body.",
      "examples": ["application/json", "application/xml", "multipart/form-data"]
    },
    "accept": {
      "type": "string",
      "description": "The Accept header value specifying the desired response format.",
      "examples": ["application/json", "application/xml"]
    },
    "authentication": {
      "$ref": "#/$defs/Authentication"
    },
    "cookies": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Cookies to send with the request."
    },
    "timeout": {
      "type": "integer",
      "minimum": 0,
      "description": "Connection timeout in milliseconds."
    }
  },
  "$defs": {
    "Authentication": {
      "title": "Authentication",
      "description": "Authentication configuration for the request.",
      "type": "object",
      "required": ["type"],
      "properties": {
        "type": {
          "type": "string",
          "enum": ["basic", "digest", "oauth2", "preemptive", "certificate"],
          "description": "The authentication scheme to use."
        },
        "username": {
          "type": "string",
          "description": "Username for basic or digest authentication."
        },
        "password": {
          "type": "string",
          "description": "Password for basic or digest authentication."
        },
        "token": {
          "type": "string",
          "description": "Bearer token for OAuth2 authentication."
        },
        "keystorePath": {
          "type": "string",
          "description": "Path to the keystore file for certificate authentication."
        },
        "keystorePassword": {
          "type": "string",
          "description": "Password for the keystore file."
        }
      }
    }
  }
}

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-assured-request"
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.