{
    "openapi": "3.0.0",
    "info": {
        "title": "API CTC Love",
        "version": "0.1"
    },
    "servers": [
        {
            "url": "https://ctclove.ru/",
            "description": "Prod server"
        },
        {
            "url": "https://ctclove.preprod.more.tv/",
            "description": "Preprod server"
        },
        {
            "url": "https://ctclove.dev.more.tv/",
            "description": "Dev server"
        },
        {
            "url": "http://lovevel.local/",
            "description": "Local server"
        }
    ],
    "paths": {
        "/api/import/new-project": {
            "post": {
                "tags": [
                    "Import"
                ],
                "summary": "Импорт нового проекта",
                "description": "Import new project",
                "operationId": "e1920a7499c79b169f7967c569137b17",
                "parameters": [
                    {
                        "name": "hub_id",
                        "in": "query",
                        "description": "hub_id",
                        "required": false,
                        "schema": {
                            "type": "int"
                        },
                        "example": "9"
                    },
                    {
                        "name": "id",
                        "in": "query",
                        "description": "id",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "example": ""
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "status": {
                                            "type": "string",
                                            "example": "success"
                                        },
                                        "message": {
                                            "type": "string",
                                            "example": ""
                                        },
                                        "id": {
                                            "type": "integer",
                                            "example": ""
                                        },
                                        "title": {
                                            "type": "string",
                                            "example": ""
                                        },
                                        "published": {
                                            "type": "string",
                                            "example": ""
                                        },
                                        "tracks": {
                                            "type": "array",
                                            "items": {
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "example": ""
                                                    },
                                                    "title": {
                                                        "type": "string",
                                                        "example": ""
                                                    },
                                                    "season_id": {
                                                        "type": "string",
                                                        "example": ""
                                                    },
                                                    "season_title": {
                                                        "type": "string",
                                                        "example": ""
                                                    },
                                                    "project_id": {
                                                        "type": "string",
                                                        "example": ""
                                                    }
                                                },
                                                "type": "object"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "status": {
                                            "type": "string",
                                            "example": "error"
                                        },
                                        "status_code": {
                                            "type": "string",
                                            "example": "{401|...}"
                                        },
                                        "message": {
                                            "type": "string",
                                            "example": "Ошибка при регистрации пользователя. ..."
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/import/project": {
            "post": {
                "tags": [
                    "Import"
                ],
                "summary": "Обновление текушего проекта",
                "description": "Import project",
                "operationId": "b8181047f205a457290623786735d5a8",
                "parameters": [
                    {
                        "name": "id",
                        "in": "query",
                        "description": "id",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "example": ""
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "projects": {
                                            "type": "array",
                                            "items": {
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "example": ""
                                                    },
                                                    "title": {
                                                        "type": "string",
                                                        "example": ""
                                                    },
                                                    "published": {
                                                        "type": "string",
                                                        "example": ""
                                                    },
                                                    "loaded": {
                                                        "type": "string",
                                                        "example": ""
                                                    }
                                                },
                                                "type": "object"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "status": {
                                            "type": "string",
                                            "example": "error"
                                        },
                                        "status_code": {
                                            "type": "string",
                                            "example": "{401|...}"
                                        },
                                        "message": {
                                            "type": "string",
                                            "example": "Ошибка при регистрации пользователя. ..."
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/app/feedback": {
            "post": {
                "tags": [
                    "Feedback"
                ],
                "summary": "Запись данных обратной связи",
                "description": "Store feedback",
                "operationId": "804e71c662f79c2b747de9335964eb9e",
                "parameters": [
                    {
                        "name": "email",
                        "in": "query",
                        "description": "email",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "example": "my@email.com"
                    },
                    {
                        "name": "message",
                        "in": "query",
                        "description": "message",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "example": "Текстовое сообщение"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "status": {
                                            "type": "string",
                                            "example": "ok"
                                        },
                                        "status_code": {
                                            "type": "integer",
                                            "example": "200"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "status_code": {
                                            "type": "integer",
                                            "example": "400"
                                        },
                                        "message": {
                                            "properties": {
                                                "email": {
                                                    "type": "array",
                                                    "items": {
                                                        "properties": {
                                                            "0": {
                                                                "type": "string",
                                                                "example": "Поле email обязательно для заполнения"
                                                            }
                                                        },
                                                        "type": "object"
                                                    }
                                                }
                                            },
                                            "type": "object"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}