{
  "id": "api/rest-api-missing-required-query-parameter",
  "signature": "400 Bad Request: Required query parameter 'limit' is missing",
  "signature_zh": "400错误请求：缺少必需的查询参数'limit'",
  "regex": "Required\\s*(query|path)\\s*parameter\\s*['\"]?\\w+['\"]?\\s*is\\s*missing",
  "domain": "api",
  "category": "request_error",
  "subcategory": null,
  "root_cause": "API endpoint requires a query parameter that was not provided in the request URL.",
  "root_cause_type": "generic",
  "root_cause_zh": "API端点需要一个查询参数，但请求URL中未提供。",
  "versions": [
    {
      "version": "OpenAPI 3.0.3",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Spring Boot 3.2.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Express.js 4.18.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Django REST Framework 3.14.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Adding the parameter to the request body instead of the query string",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Using a different parameter name (e.g., 'max_results' instead of 'limit')",
      "fail_rate": 0.75,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Sending the parameter as a header instead of a query parameter",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Add the required query parameter to the URL: `curl -X GET 'https://api.example.com/items?limit=10'`",
      "success_rate": 0.95,
      "how": "Add the required query parameter to the URL: `curl -X GET 'https://api.example.com/items?limit=10'`",
      "condition": "",
      "sources": []
    },
    {
      "action": "Check the API documentation for the correct parameter name and type, then include it in the request",
      "success_rate": 0.9,
      "how": "Check the API documentation for the correct parameter name and type, then include it in the request",
      "condition": "",
      "sources": []
    },
    {
      "action": "If using a client library, ensure you pass the parameter in the query string (e.g., in Axios: `axios.get('/items', { params: { limit: 10 } })`)",
      "success_rate": 0.85,
      "how": "If using a client library, ensure you pass the parameter in the query string (e.g., in Axios: `axios.get('/items', { params: { limit: 10 } })`)",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "将必需的查询参数添加到URL：`curl -X GET 'https://api.example.com/items?limit=10'`",
    "检查API文档以获取正确的参数名称和类型，然后在请求中包含它",
    "如果使用客户端库，确保在查询字符串中传递参数（例如，在Axios中：`axios.get('/items', { params: { limit: 10 } })`）"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://spec.openapis.org/oas/v3.0.3#parameter-object",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.9,
  "fix_success_rate": 0.95,
  "resolvable": "true",
  "first_seen": "2023-11-20",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}