{
  "openapi": "3.1.0",
  "info": {
    "title": "Gülhane Akademi Public Web API",
    "description": "Gülhane Akademi'nin iletişim ve şube bilgilerine erişim sağlayan herkese açık web servis tanımıdır.",
    "version": "1.1.0",
    "contact": {
      "name": "Gülhane Akademi",
      "url": "https://www.gulhaneakademi.com/iletisim",
      "email": "info@gulhaneakademi.com"
    }
  },
  "servers": [
    {
      "url": "https://www.gulhaneakademi.com",
      "description": "Gülhane Akademi ana sunucusu"
    }
  ],
  "tags": [
    {
      "name": "PublicPages",
      "description": "Gülhane Akademi'nin herkese açık iletişim ve şube sayfaları."
    }
  ],
  "paths": {
    "/iletisim": {
      "get": {
        "tags": [
          "PublicPages"
        ],
        "operationId": "getGulhaneContactPage",
        "summary": "Gülhane Akademi iletişim sayfasını getirir",
        "description": "Gülhane Akademi Kızılay ve Yenimahalle şubelerinin herkese açık adres ve telefon bilgilerinin bulunduğu iletişim sayfasını HTML olarak döndürür. Bu işlem herhangi bir form göndermez veya kayıt oluşturmaz.",
        "responses": {
          "200": {
            "description": "İletişim sayfası başarıyla döndürüldü.",
            "content": {
              "text/html": {
                "schema": {
                  "$ref": "#/components/schemas/PublicHtmlDocument"
                }
              }
            }
          },
          "404": {
            "description": "İletişim sayfası bulunamadı.",
            "content": {
              "text/html": {
                "schema": {
                  "$ref": "#/components/schemas/HtmlErrorDocument"
                }
              }
            }
          },
          "500": {
            "description": "Sunucu iletişim sayfasını oluştururken beklenmeyen bir hata meydana geldi.",
            "content": {
              "text/html": {
                "schema": {
                  "$ref": "#/components/schemas/HtmlErrorDocument"
                }
              }
            }
          }
        }
      }
    },
    "/subelerimiz": {
      "get": {
        "tags": [
          "PublicPages"
        ],
        "operationId": "getGulhaneBranchesPage",
        "summary": "Gülhane Akademi şubeler sayfasını getirir",
        "description": "Gülhane Akademi Kızılay ve Yenimahalle şubelerinin adres ve iletişim bilgilerinin bulunduğu herkese açık şubeler sayfasını HTML olarak döndürür.",
        "responses": {
          "200": {
            "description": "Şubeler sayfası başarıyla döndürüldü.",
            "content": {
              "text/html": {
                "schema": {
                  "$ref": "#/components/schemas/PublicHtmlDocument"
                }
              }
            }
          },
          "404": {
            "description": "Şubeler sayfası bulunamadı.",
            "content": {
              "text/html": {
                "schema": {
                  "$ref": "#/components/schemas/HtmlErrorDocument"
                }
              }
            }
          },
          "500": {
            "description": "Sunucu şube bilgilerini oluştururken beklenmeyen bir hata meydana geldi.",
            "content": {
              "text/html": {
                "schema": {
                  "$ref": "#/components/schemas/HtmlErrorDocument"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "PublicHtmlDocument": {
        "type": "string",
        "description": "Gülhane Akademi'nin herkese açık bir web sayfasının UTF-8 kodlamalı tam HTML belgesidir. Yanıt içinde sayfa başlığı, metin içeriği, adresler, telefonlar ve bağlantılar bulunabilir.",
        "minLength": 1,
        "examples": [
          "<!doctype html><html lang=\"tr\"><head><title>Gülhane Akademi</title></head><body>...</body></html>"
        ]
      },
      "HtmlErrorDocument": {
        "type": "string",
        "description": "İstenen sayfanın bulunamaması veya sunucu hatası oluşması durumunda döndürülen UTF-8 kodlamalı HTML hata belgesidir.",
        "minLength": 1,
        "examples": [
          "<!doctype html><html lang=\"tr\"><head><title>Hata</title></head><body><h1>Sayfa görüntülenemedi</h1></body></html>"
        ]
      }
    }
  }
}