RapidAPI · Schema

TestStep

API MarketplaceAPI ManagementAPI TestingAPI GatewayAPI DesignEnterprise

Properties

Name Type Description
id string Unique identifier for the step
name string Step name
method string HTTP method for the API call
url string The endpoint URL to call
headers object HTTP headers to include in the request
body string Request body content
assertions array Assertions to validate the response
View JSON Schema on GitHub

JSON Schema

rapidapi-teststep-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/TestStep",
  "title": "TestStep",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the step"
    },
    "name": {
      "type": "string",
      "description": "Step name"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET",
        "POST",
        "PUT",
        "PATCH",
        "DELETE"
      ],
      "description": "HTTP method for the API call"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "The endpoint URL to call"
    },
    "headers": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "HTTP headers to include in the request"
    },
    "body": {
      "type": "string",
      "description": "Request body content"
    },
    "assertions": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Assertion"
      },
      "description": "Assertions to validate the response"
    }
  }
}