{
  "openapi": "3.0.0",
  "info": {
    "title": "VisaFee API",
    "description": "API for accessing global visa fee data for all countries and visa types",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://visafee.com/api"
    }
  ],
  "paths": {
    "/fees/{country}": {
      "get": {
        "summary": "Get all visa fees for a given country",
        "parameters": [
          {
            "name": "country",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Country name or code (e.g., India, USA)"
          }
        ],
        "responses": {
          "200": {
            "description": "Visa fee data for the given country",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/VisaFeeResponse"
                  }
                },
                "examples": {
                  "IndiaTouristVisa": {
                    "value": [
                      {
                        "country": "India",
                        "visa_type": "Tourist Visa",
                        "fee_in_usd": 100,
                        "fee_in_inr": 8300,
                        "govt_site_link": "https://indianvisaonline.gov.in"
                      }
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "/search": {
      "get": {
        "summary": "Search visa fees by keyword",
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Search term for country or visa type"
          }
        ],
        "responses": {
          "200": {
            "description": "Search results with matching visa fees",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/VisaFeeResponse"
                  }
                },
                "examples": {
                  "USAStudentVisa": {
                    "value": [
                      {
                        "country": "USA",
                        "visa_type": "Student Visa",
                        "fee_in_usd": 350,
                        "fee_in_inr": 29050,
                        "govt_site_link": "https://travel.state.gov"
                      }
                    ]
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "VisaFeeResponse": {
        "type": "object",
        "required": [
          "country",
          "visa_type",
          "fee_in_usd",
          "fee_in_inr",
          "govt_site_link"
        ],
        "properties": {
          "country": {
            "type": "string",
            "example": "India"
          },
          "visa_type": {
            "type": "string",
            "example": "Tourist Visa"
          },
          "fee_in_usd": {
            "type": "number",
            "example": 100
          },
          "fee_in_inr": {
            "type": "number",
            "example": 8300
          },
          "govt_site_link": {
            "type": "string",
            "format": "uri",
            "example": "https://indianvisaonline.gov.in"
          }
        }
      }
    }
  }
}