{
  "openapi": "3.1.0",
  "info": {
    "title": "Doktor Dizini API",
    "version": "0.1.0",
    "description": "İstanbul hekim bilgi dizininin okuma arayüzü. Arama ucu kimlik doğrulaması istemez. Dizin hasta yorumu barındırmaz ve hekimler arasında üstünlük sıralaması yapmaz.",
    "x-status": "onsurum"
  },
  "servers": [
    {
      "url": "https://bul.doctor"
    }
  ],
  "paths": {
    "/api/search.json": {
      "get": {
        "operationId": "search",
        "summary": "Kimlik doğrulaması istemeyen tam sonuç listesi",
        "description": "Dizindeki tüm yayımlanmış kayıtları özet alanlarıyla döner. Sıra, kaydın bilgi bütünlüğünü yansıtır ve kalite sıralaması değildir.",
        "security": [],
        "responses": {
          "200": {
            "description": "Sonuç listesi",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/search/index.json": {
      "get": {
        "operationId": "searchFull",
        "summary": "Tüm alanlarıyla kayıt listesi",
        "security": [],
        "responses": {
          "200": {
            "description": "Kayıt listesi"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "SearchResponse": {
        "type": "object",
        "required": [
          "results",
          "meta"
        ],
        "properties": {
          "meta": {
            "type": "object",
            "properties": {
              "total": {
                "type": "integer"
              },
              "generatedAt": {
                "type": "string",
                "format": "date"
              },
              "notice": {
                "type": "string"
              }
            }
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Doctor"
            }
          }
        }
      },
      "Doctor": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri-reference"
          },
          "specialty": {
            "type": "string"
          },
          "specialtySlug": {
            "type": "string"
          },
          "district": {
            "type": "string"
          },
          "districtSlug": {
            "type": "string"
          },
          "settingType": {
            "type": "string"
          },
          "verified": {
            "type": "boolean",
            "description": "Kayıtta en az bir doğrulanmış bilgi var mı."
          },
          "verificationMethods": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Doğrulama yöntemi etiketleri. Güven seviyesi bu alandan okunur."
          },
          "searchRank": {
            "type": "integer",
            "description": "Dizin içi listeleme puanı. Kaydın bilgi kalitesini ölçer, hekimin tıbbi başarısını ölçmez."
          },
          "google": {
            "type": "object",
            "description": "Google kaynaklı genel değerlendirme verisi. Dizin yorum metni barındırmaz.",
            "properties": {
              "rating": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "reviewCount": {
                "type": "integer"
              },
              "fetchedAt": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date"
              }
            }
          }
        }
      }
    }
  }
}