Apache APISIX · JSON Structure

Route Structure

A Route defines rules to match client requests and specifies how to handle matched requests, including plugins and upstream configurations.

Type: object Properties: 21
ApacheAPI GatewayCloud-NativeKubernetesLuaNGINXOpen-SourceTraffic Management

Apache APISIX Route is a JSON Structure definition published by Apache APISIX, describing 21 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

uri uris name desc host hosts methods remote_addr remote_addrs vars priority plugins upstream upstream_id service_id plugin_config_id labels timeout enable_websocket status filter_func

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apache-apisix/refs/heads/main/json-structure/route-structure.json",
  "name": "Apache APISIX Route",
  "description": "A Route defines rules to match client requests and specifies how to handle matched requests, including plugins and upstream configurations.",
  "type": "object",
  "properties": {
    "uri": {
      "type": "string",
      "description": "The request URI path. Supports path prefixes with wildcard."
    },
    "uris": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "A list of URIs for the route to match."
    },
    "name": {
      "type": "string",
      "description": "Human-readable name for the route."
    },
    "desc": {
      "type": "string",
      "description": "Description of the route."
    },
    "host": {
      "type": "string",
      "description": "Host to match for the route."
    },
    "hosts": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "A list of hosts for the route to match."
    },
    "methods": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "GET",
          "POST",
          "PUT",
          "DELETE",
          "PATCH",
          "HEAD",
          "OPTIONS",
          "CONNECT",
          "TRACE"
        ]
      },
      "description": "HTTP methods to match."
    },
    "remote_addr": {
      "type": "string",
      "description": "Client IP address to match."
    },
    "remote_addrs": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "A list of client IP addresses to match."
    },
    "vars": {
      "type": "array",
      "description": "DSL expressions for matching request attributes."
    },
    "priority": {
      "type": "integer",
      "default": 0,
      "description": "Route priority for matching order. Higher value means higher priority."
    },
    "plugins": {
      "type": "object",
      "description": "Plugin configuration. Key is the plugin name and value is the plugin config."
    },
    "upstream": {
      "$ref": "upstream.json",
      "description": "Inline upstream configuration."
    },
    "upstream_id": {
      "type": "string",
      "description": "ID of an existing upstream to use."
    },
    "service_id": {
      "type": "string",
      "description": "ID of an existing service to bind to."
    },
    "plugin_config_id": {
      "type": "string",
      "description": "ID of a plugin config to bind to."
    },
    "labels": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Key-value pairs for categorization."
    },
    "timeout": {
      "type": "object",
      "description": "Timeout settings for upstream connections.",
      "properties": {
        "connect": {
          "type": "number",
          "default": 60,
          "description": "Connection timeout in seconds."
        },
        "send": {
          "type": "number",
          "default": 60,
          "description": "Send timeout in seconds."
        },
        "read": {
          "type": "number",
          "default": 60,
          "description": "Read timeout in seconds."
        }
      }
    },
    "enable_websocket": {
      "type": "boolean",
      "description": "Enable WebSocket proxying."
    },
    "status": {
      "type": "integer",
      "enum": [
        0,
        1
      ],
      "default": 1,
      "description": "Route status. 1 for enabled, 0 for disabled."
    },
    "filter_func": {
      "type": "string",
      "description": "A Lua function string for custom filtering logic."
    }
  }
}

Work with this as data

Every JSON Structure 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 json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure 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 Structure
curl "https://apis.io/api/v1/json-structures/route-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"

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

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

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