RapidAPI · Schema

RouteInput

API MarketplaceAPI ManagementAPI TestingAPI GatewayAPI DesignEnterprise

Properties

Name Type Description
pathPattern string URL path pattern to match incoming requests
targetUrl string Backend service URL to forward matching requests to
methods array HTTP methods this route handles
stripPrefix boolean Whether to strip the matched path prefix before forwarding
priority integer Route priority for matching order
enabled boolean Whether this route should be active
View JSON Schema on GitHub

JSON Schema

rapidapi-routeinput-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/RouteInput",
  "title": "RouteInput",
  "type": "object",
  "required": [
    "pathPattern",
    "targetUrl"
  ],
  "properties": {
    "pathPattern": {
      "type": "string",
      "description": "URL path pattern to match incoming requests"
    },
    "targetUrl": {
      "type": "string",
      "format": "uri",
      "description": "Backend service URL to forward matching requests to"
    },
    "methods": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "GET",
          "POST",
          "PUT",
          "PATCH",
          "DELETE"
        ]
      },
      "description": "HTTP methods this route handles"
    },
    "stripPrefix": {
      "type": "boolean",
      "default": false,
      "description": "Whether to strip the matched path prefix before forwarding"
    },
    "priority": {
      "type": "integer",
      "default": 0,
      "description": "Route priority for matching order"
    },
    "enabled": {
      "type": "boolean",
      "default": true,
      "description": "Whether this route should be active"
    }
  }
}