{
  "openapi": "3.1.0",
  "info": {
    "title": "Ronesin API",
    "version": "1.0.0",
    "summary": "Ronesin web stüdyosunun hizmet, paket, fiyat ve iletişim verisi; teklif talebi gönderimi.",
    "description": "Ronesin (ronesin.com), Bursa merkezli ve Türkiye geneline uzaktan hizmet veren bir web tasarım ve web yazılım stüdyosudur. Kurumsal web sitesi, e-ticaret sitesi, landing/kampanya sayfası ve SEO–performans–bakım hizmetleri sunar; sabit fiyatlı paketlerle çalışır ve tüm fiyatları herkese açık yayınlar.",
    "contact": {
      "name": "Ronesin",
      "url": "https://ronesin.com",
      "email": "kurpeeren@gmail.com"
    }
  },
  "servers": [
    {
      "url": "https://ronesin.com",
      "description": "Statik veri"
    }
  ],
  "paths": {
    "/api/site.json": {
      "get": {
        "operationId": "getSiteData",
        "summary": "Hizmetler, paketler, güncel fiyatlar, SSS, portföy ve iletişim bilgisi",
        "responses": {
          "200": {
            "description": "Site verisi",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteData"
                }
              }
            }
          }
        }
      }
    },
    "/api/basvuru": {
      "servers": [
        {
          "url": "https://panel.ronesin.com",
          "description": "Teklif / iletişim talebi (panel.ronesin.com)"
        }
      ],
      "post": {
        "operationId": "submitLead",
        "summary": "Teklif veya iletişim talebi ilet (kullanıcı onayıyla)",
        "x-openai-isConsequential": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "email",
                  "message"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Ad Soyad"
                  },
                  "email": {
                    "type": "string",
                    "format": "email"
                  },
                  "phone": {
                    "type": "string",
                    "description": "Telefon (isteğe bağlı)"
                  },
                  "service": {
                    "type": "string",
                    "enum": [
                      "Kurumsal Web Sitesi",
                      "E-ticaret",
                      "Landing & Kampanya",
                      "SEO, Performans & Bakım",
                      "Diğer"
                    ]
                  },
                  "message": {
                    "type": "string",
                    "description": "Proje özeti"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Alındı",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Doğrulama hatası",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Package": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "price": {
            "type": "number",
            "description": "TRY, KDV hariç; kampanya aktifse indirimli fiyat"
          },
          "listPrice": {
            "type": "number"
          },
          "priceType": {
            "type": "string",
            "enum": [
              "fixed",
              "starting-from"
            ]
          },
          "currency": {
            "type": "string",
            "const": "TRY"
          },
          "vatIncluded": {
            "type": "boolean",
            "const": false
          },
          "availability": {
            "type": "string",
            "const": "InStock"
          },
          "deliveryTime": {
            "type": "string"
          },
          "yearlyMaintenance": {
            "type": "string"
          },
          "fitsFor": {
            "type": "string"
          },
          "buildsOn": {
            "type": [
              "string",
              "null"
            ]
          },
          "includes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "SiteData": {
        "type": "object",
        "properties": {
          "organization": {
            "type": "object"
          },
          "contact": {
            "type": "object"
          },
          "services": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "pricing": {
            "type": "object"
          },
          "packages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Package"
            }
          },
          "process": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "portfolio": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "faq": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        }
      }
    }
  }
}