{
  "openapi": "3.1.0",
  "info": {
    "title": "astrasoft.uz Engineering & Diagnostic API",
    "version": "2026.1.0",
    "description": "Public read-only API for Tashkent IT service pricing (UZS), AnyDesk online quotes, and Uzbekistan software/tax troubleshooting (E-IMZO, 1C, Autodesk, Intel VMD, Faceit).",
    "contact": {
      "name": "Anvar Sobirov",
      "url": "https://astrasoft.uz/",
      "email": "connect@astrasoft.uz"
    }
  },
  "servers": [
    {
      "url": "https://astrasoft.uz"
    }
  ],
  "paths": {
    "/api/ask": {
      "get": {
        "operationId": "askNaturalLanguage",
        "summary": "NLWeb-compatible natural-language troubleshooting and pricing query",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Grounded JSON response with diagnostics and UZS prices"
          }
        }
      }
    },
    "/api/quote": {
      "get": {
        "operationId": "getServiceQuote",
        "summary": "Calculate fixed IT service quote in UZS with bundle arbitrage and 10% AnyDesk discount",
        "parameters": [
          {
            "name": "service",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "remote",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Quote calculation result"
          }
        }
      }
    },
    "/api/mcp": {
      "post": {
        "operationId": "mcpJsonRpc",
        "summary": "Model Context Protocol (JSON-RPC 2.0) tools/list and tools/call endpoint",
        "responses": {
          "200": {
            "description": "JSON-RPC 2.0 response"
          }
        }
      }
    },
    "/data/uz-troubleshooting-matrix.json": {
      "get": {
        "operationId": "getTroubleshootingMatrix",
        "summary": "Machine-readable dataset of Uzbekistan IT error codes",
        "responses": {
          "200": {
            "description": "JSON troubleshooting dataset"
          }
        }
      }
    }
  }
}
