{
    "openapi": "3.1.0",
    "info": {
        "title": "Garajsoft açık veri",
        "version": "1.9.0",
        "description": "Yayımlanmasına izin verilen site içerikleri için salt okunur dizin. Yönetim, başvuru, anahtar ve özel notlar dahil edilmez."
    },
    "servers": [
        {
            "url": "https://garajsoft.com"
        }
    ],
    "paths": {
        "/llms.txt": {
            "get": {
                "operationId": "getLlmsTxt",
                "summary": "LLM site dizini",
                "responses": {
                    "200": {
                        "description": "Başarılı yanıt",
                        "content": {
                            "text/plain": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "İçerik bulunamadı veya açık veri kapalı"
                    },
                    "405": {
                        "description": "Yalnızca GET ve HEAD"
                    }
                }
            }
        },
        "/api/agent.json": {
            "get": {
                "operationId": "getApiAgentJson",
                "summary": "Agent tanımı",
                "responses": {
                    "200": {
                        "description": "Başarılı yanıt",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "additionalProperties": true
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "İçerik bulunamadı veya açık veri kapalı"
                    },
                    "405": {
                        "description": "Yalnızca GET ve HEAD"
                    }
                }
            }
        },
        "/api/facts.json": {
            "get": {
                "operationId": "getApiFactsJson",
                "summary": "Kurum bilgileri",
                "responses": {
                    "200": {
                        "description": "Başarılı yanıt",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "additionalProperties": true
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "İçerik bulunamadı veya açık veri kapalı"
                    },
                    "405": {
                        "description": "Yalnızca GET ve HEAD"
                    }
                }
            }
        },
        "/api/posts.json": {
            "get": {
                "operationId": "getApiPostsJson",
                "summary": "Yazı dizini",
                "responses": {
                    "200": {
                        "description": "Başarılı yanıt",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "site": {
                                            "type": "string"
                                        },
                                        "page": {
                                            "type": "integer"
                                        },
                                        "per_page": {
                                            "type": "integer"
                                        },
                                        "total": {
                                            "type": "integer"
                                        },
                                        "has_more": {
                                            "type": "boolean"
                                        },
                                        "next": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "posts": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/PublicContent"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "İçerik bulunamadı veya açık veri kapalı"
                    },
                    "405": {
                        "description": "Yalnızca GET ve HEAD"
                    }
                },
                "parameters": [
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100000,
                            "default": 1
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100,
                            "default": 20
                        }
                    }
                ]
            }
        },
        "/api/pages.json": {
            "get": {
                "operationId": "getApiPagesJson",
                "summary": "Tüm genel içerik dizini",
                "responses": {
                    "200": {
                        "description": "Başarılı yanıt",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "site": {
                                            "type": "string"
                                        },
                                        "page": {
                                            "type": "integer"
                                        },
                                        "per_page": {
                                            "type": "integer"
                                        },
                                        "total": {
                                            "type": "integer"
                                        },
                                        "has_more": {
                                            "type": "boolean"
                                        },
                                        "next": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "pages": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/PublicContent"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "İçerik bulunamadı veya açık veri kapalı"
                    },
                    "405": {
                        "description": "Yalnızca GET ve HEAD"
                    }
                },
                "parameters": [
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100000,
                            "default": 1
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100,
                            "default": 20
                        }
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "page",
                                "post",
                                "gx_service",
                                "gx_solution",
                                "gx_sector",
                                "gx_product",
                                "gx_work",
                                "gx_partner"
                            ]
                        }
                    }
                ]
            }
        },
        "/api/content.json": {
            "get": {
                "operationId": "getApiContentJson",
                "summary": "İzin verilen sayfa / yazı içeriği",
                "responses": {
                    "200": {
                        "description": "Başarılı yanıt",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ContentDetail"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "İçerik bulunamadı veya açık veri kapalı"
                    },
                    "405": {
                        "description": "Yalnızca GET ve HEAD"
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    }
                ]
            }
        },
        "/openapi.json": {
            "get": {
                "operationId": "getOpenapiJson",
                "summary": "OpenAPI 3.1",
                "responses": {
                    "200": {
                        "description": "Başarılı yanıt",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "additionalProperties": true
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "İçerik bulunamadı veya açık veri kapalı"
                    },
                    "405": {
                        "description": "Yalnızca GET ve HEAD"
                    }
                }
            }
        },
        "/rss.xml": {
            "get": {
                "operationId": "getRssXml",
                "summary": "RSS 2.0",
                "responses": {
                    "200": {
                        "description": "Başarılı yanıt",
                        "content": {
                            "application/rss+xml": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "İçerik bulunamadı veya açık veri kapalı"
                    },
                    "405": {
                        "description": "Yalnızca GET ve HEAD"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "PublicContent": {
                "type": "object",
                "required": [
                    "id",
                    "type",
                    "title",
                    "url",
                    "description",
                    "summary",
                    "facts",
                    "topics",
                    "knowledge",
                    "faq",
                    "content_endpoint"
                ],
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "type": {
                        "type": "string",
                        "enum": [
                            "page",
                            "post",
                            "gx_service",
                            "gx_solution",
                            "gx_sector",
                            "gx_product",
                            "gx_work",
                            "gx_partner"
                        ]
                    },
                    "title": {
                        "type": "string"
                    },
                    "url": {
                        "type": "string",
                        "format": "uri"
                    },
                    "description": {
                        "type": "string"
                    },
                    "summary": {
                        "type": "string"
                    },
                    "facts": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "topics": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "knowledge": {
                        "type": "string"
                    },
                    "faq": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "question": {
                                    "type": "string"
                                },
                                "answer": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "language": {
                        "type": "string"
                    },
                    "published": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "updated": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "content_endpoint": {
                        "type": "string",
                        "format": "uri"
                    }
                }
            },
            "ContentDetail": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/PublicContent"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "content": {
                                "type": "string"
                            },
                            "content_truncated": {
                                "type": "boolean"
                            },
                            "content_limit": {
                                "type": "integer"
                            },
                            "access": {
                                "type": "string",
                                "enum": [
                                    "summary",
                                    "public"
                                ]
                            }
                        }
                    }
                ]
            }
        }
    }
}