{
    "openapi": "3.0.0",
    "info": {
        "title": "Public API for the Azkar website",
        "version": "1.0.0"
    },
    "paths": {
        "/api/azkars": {
            "get": {
                "tags": [
                    "Azkars"
                ],
                "summary": "Список азкаров",
                "description": "Возвращает список азкаров с категорией",
                "operationId": "e46a2b484a9f849a8feae77b6e55d5ad",
                "parameters": [
                    {
                        "name": "category",
                        "in": "query",
                        "description": "The slug of the category to filter azkars",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "example": "morning"
                    },
                    {
                        "name": "onlyMeta",
                        "in": "query",
                        "description": "The boolean which intructs the server to send only meta",
                        "required": false,
                        "schema": {
                            "type": "boolean"
                        },
                        "example": false
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/AzkarCollection"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/categories": {
            "get": {
                "tags": [
                    "Categories"
                ],
                "summary": "Список категорий",
                "description": "Возвращает список категорий",
                "operationId": "dc59648dc3c9671f8406900bb0e4edfe",
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Category"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "AzkarCollection": {
                "properties": {
                    "data": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Azkar"
                        }
                    },
                    "meta": {
                        "type": "array",
                        "items": {
                            "properties": {
                                "last_modified_at": {
                                    "type": "string"
                                }
                            },
                            "type": "object"
                        }
                    }
                },
                "type": "object"
            },
            "Azkar": {
                "properties": {
                    "title": {
                        "type": "string",
                        "example": "Зикр при входе в дом"
                    },
                    "displayTitle": {
                        "type": "boolean",
                        "example": true
                    },
                    "text": {
                        "type": "string",
                        "example": "بِسْمِ اللَّهِ"
                    },
                    "translation": {
                        "type": "string",
                        "example": "С именем Аллаха."
                    },
                    "transcription": {
                        "type": "string",
                        "example": "БисмиЛлях"
                    },
                    "source": {
                        "type": "string",
                        "example": "Ахмад, Ат-Тирмизи",
                        "nullable": true
                    },
                    "count": {
                        "type": "integer",
                        "example": "7",
                        "nullable": true
                    },
                    "order": {
                        "type": "integer",
                        "example": 100
                    },
                    "audio": {
                        "type": "string",
                        "format": "uri",
                        "example": "https://example.com/audio/azkar-1.mp3",
                        "nullable": true
                    }
                },
                "type": "object"
            },
            "Category": {
                "properties": {
                    "slug": {
                        "type": "string",
                        "example": "morning"
                    },
                    "title": {
                        "type": "string",
                        "example": "Утром"
                    },
                    "full_title": {
                        "type": "string",
                        "example": "Утренние азкары"
                    },
                    "created_at": {
                        "type": "string",
                        "example": "2025-12-21T10:02:03.000000Z"
                    },
                    "updated_at": {
                        "type": "string",
                        "example": "2025-12-21T10:02:03.000000Z"
                    }
                },
                "type": "object"
            }
        }
    },
    "tags": [
        {
            "name": "Azkars",
            "description": "Azkars"
        },
        {
            "name": "Categories",
            "description": "Categories"
        }
    ]
}