{ "openapi": "3.0.0", "info": { "title": "API SuluFace", "description": "API for managing system", "version": "1.0.0" }, "servers": [ { "url": "https://sulu-admin.devup.kz/api" }, { "url": "http://localhost:3002/api" } ], "tags": [ { "name": "API для страниц сайта", "description": "API данных для сайта" }, { "name": "Заказы", "description": "API для создание заказа" }, { "name": "Клиенты", "description": "API для клиентов" }, { "name": "Мастер (авторизация)" }, { "name": "Мастер (услуги)" }, { "name": "Мастер (график работы)" }, { "name": "Мастер (выходные дни)" }, { "name": "Мастер (галерея мастера)" }, { "name": "Мастер (социальные сети)" }, { "name": "Мастер (работы)" } ], "paths": { "/pages/static/{type}": { "get": { "summary": "Получить данные статичных страниц", "tags": ["API для страниц сайта"], "parameters": [ { "name": "type", "description": "privacy, terms, payment, sitemap, contacts", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Данные страницы", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/Static_Info" } } } } } } } }, "/pages/mainpage": { "get": { "summary": "Получить данные главной страницы", "tags": ["API для страниц сайта"], "responses": { "200": { "description": "Главная страницы", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/Static_Info" } } } } } } } }, "/masters/{nickname}": { "get": { "summary": "Получить данные одного мастера", "tags": ["API для страниц сайта"], "parameters": [ { "name": "nickname", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Данные страницы", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/Static_Info" } } } } } } } }, "/categories": { "get": { "summary": "Получить все категории с подкатегориями", "tags": ["API для страниц сайта"], "responses": { "200": { "description": "Данные страницы", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/Static_Info" } } } } } } } }, "/categories/c/{slug}": { "get": { "summary": "Получить данные по категории", "tags": ["API для страниц сайта"], "parameters": [ { "name": "slug", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "subcategory", "in": "query", "schema": { "type": "string" } }, { "name": "service", "in": "query", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Данные страницы", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/Static_Info" } } } } } } } }, "/auth-client/login": { "post": { "summary": "Вход клиента", "tags": ["Клиенты"], "requestBody": { "required": true, "content": { "multipart/form-data": { "schema": { "$ref": "#/components/schemas/Login" } } } }, "responses": { "200": { "description": "Данные клиента", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/Client" } } } } } } } }, "/auth-client/register": { "post": { "summary": "Регистрация клиента", "tags": ["Клиенты"], "requestBody": { "required": true, "content": { "multipart/form-data": { "schema": { "$ref": "#/components/schemas/Client" } } } }, "responses": { "201": { "description": "Данные клиента", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/Client" } } } } } } } }, "/auth-client/me": { "get": { "summary": "Получить данные пользователя", "tags": ["Клиенты"], "responses": { "200": { "description": "Данные клиента", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/Client" } } } } } } } }, "/auth-client/update": { "put": { "summary": "Обновление данных клиента", "tags": ["Клиенты"], "requestBody": { "required": true, "content": { "multipart/form-data": { "schema": { "$ref": "#/components/schemas/Client" } } } }, "responses": { "200": { "description": "Данные клиента", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/Client" } } } } } } } }, "/auth-client/update-image": { "put": { "summary": "Обновление аватарки клиента", "tags": ["Клиенты"], "requestBody": { "required": true, "content": { "multipart/form-data": { "schema": { "type": "object", "properties": { "image": { "type": "string", "format": "binary" } } } } } }, "responses": { "200": { "description": "Данные клиента", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/Client" } } } } } } } }, "/auth-client/change-password": { "put": { "summary": "Смена пароля клиента", "tags": ["Клиенты"], "requestBody": { "required": true, "content": { "multipart/form-data": { "schema": { "type": "object", "properties": { "password": { "type": "string" }, "new_password": { "type": "string" } } } } } }, "responses": { "200": { "description": "Данные клиента", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/Client" } } } } } } } }, "/client/favourites": { "get": { "summary": "Получить список избранных пользователя через Bearer Token", "tags": ["Клиенты"], "responses": { "200": { "description": "Список избранных", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/Client" } } } } } } }, "post": { "summary": "Отправить master_id в body и Bearer Token для добавление в избранные", "tags": ["Клиенты"], "requestBody": { "required": true, "content": { "multipart/form-data": { "schema": { "type": "object", "properties": { "master_id": { "type": "integer" } }, "required": ["master_id"] } } } }, "responses": { "201": { "description": "Добавление в избранные", "content": { "application/json": { "schema": { "schema": { "type": "object", "properties": { "message": { "type": "string", "default": "Успешно добавлено" } } } } } } } } } }, "/client/favourites/{id}": { "delete": { "summary": "Удалить избранные через Bearer Token", "tags": ["Клиенты"], "parameters": [ { "name": "id", "description": "Отправить master_id", "in": "path", "required": true, "schema": { "type": "integer" } } ], "responses": { "200": { "description": "Удалено", "content": { "application/json": { "schema": { "type": "object", "properties": { "message": { "type": "string", "default": "Удалено" } } } } } } } } }, "/client/comment": { "post": { "summary": "Добавить коммент к мастеру. Отправить Bearer Token", "tags": ["Клиенты"], "requestBody": { "required": true, "content": { "multipart/form-data": { "schema": { "items": { "$ref": "#/components/schemas/Comment" } } } } }, "responses": { "201": { "description": "Добавление коммента", "content": { "application/json": { "schema": { "schema": { "type": "object", "properties": { "message": { "type": "string", "default": "Успешно добавлено" } } } } } } } } } }, "/auth-master/login": { "post": { "summary": "Вход мастера", "tags": ["Мастер (авторизация)"], "requestBody": { "required": true, "content": { "multipart/form-data": { "schema": { "$ref": "#/components/schemas/Login" } } } }, "responses": { "200": { "description": "Данные мастера", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/Master" } } } } } } } }, "/auth-master/register": { "post": { "summary": "Регистрация мастера", "tags": ["Мастер (авторизация)"], "requestBody": { "required": true, "content": { "multipart/form-data": { "schema": { "$ref": "#/components/schemas/Master" } } } }, "responses": { "201": { "description": "Данные мастера", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/Master" } } } } } } } }, "/auth-master/me": { "get": { "summary": "Получить данные мастера", "tags": ["Мастер (авторизация)"], "responses": { "200": { "description": "Данные мастера", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/Master" } } } } } } } }, "/auth-master/update": { "put": { "summary": "Редактировать данные мастера", "tags": ["Мастер (авторизация)"], "responses": { "200": { "description": "Данные мастера", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/Master" } } } } } } } }, "/auth-master/change-password": { "put": { "summary": "Смена пароля мастера", "tags": ["Мастер (авторизация)"], "requestBody": { "required": true, "content": { "multipart/form-data": { "schema": { "type": "object", "properties": { "password": { "type": "string" }, "new_password": { "type": "string" } } } } } }, "responses": { "200": { "description": "Данные мастера", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/Master" } } } } } } } }, "/master/schedule": { "get": { "summary": "Получить график работы мастера по accessToken", "tags": ["Мастер (график работы)"], "responses": { "200": { "description": "Данные", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "integer" }, "master_id": { "type": "integer" }, "start_at": { "type": "string" }, "end_at": { "type": "string" }, "day_week": { "type": "string" }, "day_off": { "type": "boolean" } } } } } } } }, "post": { "summary": "Добавить график работы", "tags": ["Мастер (график работы)"], "requestBody": { "required": true, "content": { "multipart/form-data": { "schema": { "type": "object", "properties": { "start_at": { "type": "string" }, "end_at": { "type": "string" }, "day_week": { "description": "('mo', 'tu', 'we', 'th', 'fr', 'sa', 'su') - отправить один их них", "type": "string" }, "day_off": { "type": "boolean" } } } } } }, "responses": { "200": { "description": "Данные", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "integer" }, "master_id": { "type": "integer" }, "start_at": { "type": "string" }, "end_at": { "type": "string" }, "day_week": { "type": "string" }, "day_off": { "type": "boolean" } } } } } } } } }, "/master/schedule/{id}": { "put": { "summary": "Изменить график работы мастера по accessToken", "tags": ["Мастер (график работы)"], "parameters": [ { "name": "id", "in": "path", "type": "integer", "required": true } ], "requestBody": { "required": true, "content": { "multipart/form-data": { "schema": { "type": "object", "properties": { "start_at": { "type": "string" }, "end_at": { "type": "string" }, "day_week": { "description": "('mo', 'tu', 'we', 'th', 'fr', 'sa', 'su') - отправить один их них", "type": "string" }, "day_off": { "type": "boolean" } } } } } }, "responses": { "200": { "description": "Данные", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "integer" }, "master_id": { "type": "integer" }, "start_at": { "type": "string" }, "end_at": { "type": "string" }, "day_week": { "type": "string" }, "day_off": { "type": "boolean" } } } } } } } }, "delete": { "summary": "Удалить график работы по id и по accessToken", "tags": ["Мастер (график работы)"], "parameters": [ { "name": "id", "in": "path", "type": "integer", "required": true } ], "responses": { "200": { "description": "Данные", "content": { "application/json": { "schema": { "type": "object", "properties": { "message": { "type": "string" } } } } } } } } }, "/master/gallery": { "get": { "summary": "Получить галерея мастера по accessToken", "tags": ["Мастер (галерея мастера)"], "responses": { "200": { "description": "Данные", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "integer" }, "master_id": { "type": "integer" }, "image": { "type": "string", "format": "binary" }, "is_main": { "type": "boolean" } } } } } } } }, "post": { "summary": "Добавить новую фотографию мастера по accessToken", "tags": ["Мастер (галерея мастера)"], "requestBody": { "required": true, "content": { "multipart/form-data": { "schema": { "type": "object", "properties": { "image": { "type": "string", "format": "binary" }, "is_main": { "type": "boolean" } } } } } }, "responses": { "200": { "description": "Данные", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "integer" }, "master_id": { "type": "integer" }, "image": { "type": "string", "format": "binary" }, "is_main": { "type": "boolean" } } } } } } } } }, "/master/gallery/{id}": { "put": { "summary": "Редактировать фотографию мастера по accessToken", "tags": ["Мастер (галерея мастера)"], "parameters": [ { "name": "id", "in": "path", "type": "integer", "required": true } ], "requestBody": { "required": true, "content": { "multipart/form-data": { "schema": { "type": "object", "properties": { "image": { "type": "string", "format": "binary" }, "is_main": { "type": "boolean" } } } } } }, "responses": { "200": { "description": "Данные", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "integer" }, "master_id": { "type": "integer" }, "start_at": { "type": "string" }, "end_at": { "type": "string" }, "day_week": { "type": "string" }, "day_off": { "type": "boolean" } } } } } } } }, "delete": { "summary": "Удалить фотографию мастера по id и по accessToken", "tags": ["Мастер (галерея мастера)"], "parameters": [ { "name": "id", "in": "path", "type": "integer", "required": true } ], "responses": { "200": { "description": "Данные", "content": { "application/json": { "schema": { "type": "object", "properties": { "message": { "type": "string" } } } } } } } } }, "/master/socials": { "get": { "summary": "Получить соц.сеть мастера по accessToken", "tags": ["Мастер (социальные сети)"], "responses": { "200": { "description": "Данные", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "integer" }, "master_id": { "type": "integer" }, "type": { "type": "string" }, "link": { "type": "boolean" } } } } } } } }, "post": { "summary": "Добавить соц.сеть мастера по accessToken", "tags": ["Мастер (социальные сети)"], "requestBody": { "required": true, "content": { "multipart/form-data": { "schema": { "type": "object", "properties": { "type": { "type": "string", "description": "('whatsapp', 'telegram', 'viber', 'phone', 'email', 'instagram', 'tiktok') - отправить один из них" }, "link": { "type": "string" } } } } } }, "responses": { "200": { "description": "Данные", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "integer" }, "master_id": { "type": "integer" }, "image": { "type": "string", "format": "binary" }, "is_main": { "type": "boolean" } } } } } } } } }, "/master/socials/{id}": { "put": { "summary": "Редактировать соц.сеть мастера по accessToken", "tags": ["Мастер (социальные сети)"], "parameters": [ { "name": "id", "in": "path", "type": "integer", "required": true } ], "requestBody": { "required": true, "content": { "multipart/form-data": { "schema": { "type": "object", "properties": { "type": { "type": "string", "description": "('whatsapp', 'telegram', 'viber', 'phone', 'email', 'instagram', 'tiktok') - отправить один из них" }, "link": { "type": "string" } } } } } }, "responses": { "200": { "description": "Данные", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "integer" }, "master_id": { "type": "integer" }, "start_at": { "type": "string" }, "end_at": { "type": "string" }, "day_week": { "type": "string" }, "day_off": { "type": "boolean" } } } } } } } }, "delete": { "summary": "Удалить соц.сеть по id и по accessToken", "tags": ["Мастер (социальные сети)"], "parameters": [ { "name": "id", "in": "path", "type": "integer", "required": true } ], "responses": { "200": { "description": "Данные", "content": { "application/json": { "schema": { "type": "object", "properties": { "message": { "type": "string" } } } } } } } } }, "/master/jobs": { "get": { "summary": "Получить работы мастера по accessToken", "tags": ["Мастер (работы)"], "responses": { "200": { "description": "Данные", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "integer" }, "master_id": { "type": "integer" }, "name": { "type": "string" }, "description": { "type": "string" }, "image": { "type": "string" } } } } } } } }, "post": { "summary": "Добавить работы мастера по accessToken", "tags": ["Мастер (работы)"], "requestBody": { "required": true, "content": { "multipart/form-data": { "schema": { "type": "object", "properties": { "name": { "type": "string" }, "description": { "type": "string" }, "image": { "type": "string", "format": "binary" } } } } } }, "responses": { "200": { "description": "Данные", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "integer" }, "master_id": { "type": "integer" }, "image": { "type": "string", "format": "binary" }, "is_main": { "type": "boolean" } } } } } } } } }, "/master/jobs/{id}": { "put": { "summary": "Редактировать работы мастера по accessToken", "tags": ["Мастер (работы)"], "parameters": [ { "name": "id", "in": "path", "type": "integer", "required": true } ], "requestBody": { "required": true, "content": { "multipart/form-data": { "schema": { "type": "object", "properties": { "name": { "type": "string" }, "description": { "type": "string" }, "image": { "type": "string", "format": "binary" } } } } } }, "responses": { "200": { "description": "Данные", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "integer" }, "master_id": { "type": "integer" }, "start_at": { "type": "string" }, "end_at": { "type": "string" }, "day_week": { "type": "string" }, "day_off": { "type": "boolean" } } } } } } } }, "delete": { "summary": "Удалить работы по id и по accessToken", "tags": ["Мастер (работы)"], "parameters": [ { "name": "id", "in": "path", "type": "integer", "required": true } ], "responses": { "200": { "description": "Данные", "content": { "application/json": { "schema": { "type": "object", "properties": { "message": { "type": "string" } } } } } } } } }, "/services/{id}": { "get": { "summary": "Получить список услуг по ID подкатегории", "tags": ["Мастер (услуги)"], "parameters": [ { "name": "id", "in": "path", "type": "integer", "required": true } ], "responses": { "200": { "description": "Данные", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "integer" }, "service_id": { "type": "integer" }, "service_name": { "type": "string" } } } } } } } } }, "/master/services": { "get": { "summary": "Получить услуги мастера по accessToken", "tags": ["Мастер (услуги)"], "responses": { "200": { "description": "Данные", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "integer" }, "master_id": { "type": "integer" }, "service_id": { "type": "integer" }, "is_home": { "type": "boolean" }, "price": { "type": "integer" }, "time": { "type": "string", "description": "('30', '60', '90', '120', '150', '180') - отправить один из значении" } } } } } } } }, "post": { "summary": "Добавить услугу мастера по accessToken", "tags": ["Мастер (услуги)"], "requestBody": { "required": true, "content": { "multipart/form-data": { "schema": { "type": "object", "properties": { "service_id": { "type": "integer" }, "is_home": { "type": "boolean" }, "price": { "type": "integer" }, "time": { "type": "string", "description": "('30', '60', '90', '120', '150', '180') - отправить один из значении" } } } } } }, "responses": { "200": { "description": "Данные", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "integer" }, "master_id": { "type": "integer" }, "image": { "type": "string", "format": "binary" }, "is_main": { "type": "boolean" } } } } } } } } }, "/master/services/{id}": { "put": { "summary": "Редактировать услугу мастера по accessToken", "tags": ["Мастер (услуги)"], "parameters": [ { "name": "id", "in": "path", "type": "integer", "required": true } ], "requestBody": { "required": true, "content": { "multipart/form-data": { "schema": { "type": "object", "properties": { "service_id": { "type": "integer" }, "is_home": { "type": "boolean" }, "price": { "type": "integer" }, "time": { "type": "string", "description": "('30', '60', '90', '120', '150', '180') - отправить один из значении" } } } } } }, "responses": { "200": { "description": "Данные", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "integer" }, "master_id": { "type": "integer" }, "start_at": { "type": "string" }, "end_at": { "type": "string" }, "day_week": { "type": "string" }, "day_off": { "type": "boolean" } } } } } } } }, "delete": { "summary": "Удалить услугу мастера по id и по accessToken", "tags": ["Мастер (услуги)"], "parameters": [ { "name": "id", "in": "path", "type": "integer", "required": true } ], "responses": { "200": { "description": "Данные", "content": { "application/json": { "schema": { "type": "object", "properties": { "message": { "type": "string" } } } } } } } } }, "/master/weekend": { "get": { "summary": "Получить выходные дни мастера по accessToken", "tags": ["Мастер (выходные дни)"], "responses": { "200": { "description": "Данные", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "integer" }, "master_id": { "type": "integer" }, "date": { "type": "string" } } } } } } } }, "post": { "summary": "Добавить выходные дни мастера по accessToken", "tags": ["Мастер (выходные дни)"], "requestBody": { "required": true, "content": { "multipart/form-data": { "schema": { "type": "object", "properties": { "date": { "type": "string" } } } } } }, "responses": { "200": { "description": "Данные", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "integer" }, "master_id": { "type": "integer" }, "date": { "type": "string", "format": "binary" } } } } } } } } }, "/master/weekend/{id}": { "put": { "summary": "Редактировать выходные дни мастера по accessToken", "tags": ["Мастер (выходные дни)"], "parameters": [ { "name": "id", "in": "path", "type": "integer", "required": true } ], "requestBody": { "required": true, "content": { "multipart/form-data": { "schema": { "type": "object", "properties": { "date": { "type": "string" } } } } } }, "responses": { "200": { "description": "Данные", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "integer" }, "master_id": { "type": "integer" }, "start_at": { "type": "string" }, "end_at": { "type": "string" }, "day_week": { "type": "string" }, "day_off": { "type": "boolean" } } } } } } } }, "delete": { "summary": "Удалить выходные дни мастера по id и по accessToken", "tags": ["Мастер (выходные дни)"], "parameters": [ { "name": "id", "in": "path", "type": "integer", "required": true } ], "responses": { "200": { "description": "Данные", "content": { "application/json": { "schema": { "type": "object", "properties": { "message": { "type": "string" } } } } } } } } }, "/orders/booking/{id}": { "get": { "summary": "Получить заказы", "tags": ["Заказы"], "parameters": [ { "name": "id", "in": "path", "type": "integer", "required": true }, { "name": "time", "in": "query", "type": "integer", "required": true }, { "name": "date", "in": "query", "type": "string", "required": true } ], "responses": { "200": { "description": "Данные", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "integer" }, "master_id": { "type": "integer" }, "date": { "type": "string" } } } } } } } } }, "/orders/{id}": { "put": { "summary": "Получить заказы", "tags": ["Заказы"], "parameters": [ { "name": "id", "in": "path", "type": "integer", "required": true } ], "requestBody": { "required": true, "content": { "multipart/form-data": { "schema": { "type": "object", "properties": { "status": { "type": "string" } } } } } }, "responses": { "200": { "description": "Данные", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "integer" }, "master_id": { "type": "integer" }, "date": { "type": "string" } } } } } } } } }, "/orders/{role}": { "get": { "summary": "Получить заказы", "tags": ["Заказы"], "parameters": [ { "name": "role", "in": "path", "type": "string", "required": true } ], "responses": { "200": { "description": "Данные", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "integer" }, "master_id": { "type": "integer" }, "date": { "type": "string" } } } } } } } } }, "/orders": { "post": { "summary": "Добавить выходные дни мастера по accessToken", "tags": ["Заказы"], "requestBody": { "required": true, "content": { "multipart/form-data": { "schema": { "type": "object", "properties": { "client_id": { "type": "string" }, "master_id": { "type": "string" }, "total": { "type": "string" }, "time_total": { "type": "integer" }, "service_id": { "type": "integer" }, "date": { "type": "string", "format": "date-time" } } } } } }, "responses": { "200": { "description": "Данные", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "integer" }, "master_id": { "type": "integer" }, "date": { "type": "string", "format": "binary" } } } } } } } } } }, "components": { "schemas": { "Static_Info": { "type": "object", "properties": { "id": { "type": "integer" }, "name": { "type": "string" }, "description": { "type": "string" } } }, "Client": { "type": "object", "properties": { "surname": { "type": "string" }, "name": { "type": "string" }, "email": { "type": "string" }, "phone": { "type": "string" }, "gender": { "type": "string" }, "birthday": { "type": "string" }, "password": { "type": "string" } } }, "Master": { "type": "object", "properties": { "nickname": { "type": "string" }, "surname": { "type": "string" }, "name": { "type": "string" }, "type": { "type": "string", "description": "('Мастер', 'Барбер', 'Врач', 'Массажист', 'Косметолог', 'Парикмахер', 'Стилист') - отправить один их этих значении" }, "email": { "type": "string" }, "phone": { "type": "string" }, "gender": { "type": "string" }, "birthday": { "type": "string" }, "password": { "type": "string" } } }, "Categories_cargo": { "type": "object", "properties": { "id": { "type": "integer" }, "name_ru": { "type": "string" }, "name_kk": { "type": "string" }, "name_zh": { "type": "string" }, "name_en": { "type": "string" } } }, "Comment": { "type": "object", "properties": { "master_id": { "type": "integer" }, "is_like": { "type": "boolean" }, "rating": { "type": "integer" }, "comment": { "type": "string" }, "service_id": { "type": "integer", "required": true } } }, "Users": { "type": "object", "properties": { "surname": { "type": "string" }, "name": { "type": "string" }, "phone": { "type": "string" }, "email": { "type": "string" }, "password": { "type": "string" } } }, "Login": { "type": "object", "properties": { "email": { "type": "string" }, "password": { "type": "string" } } }, "UnauthorizedError": { "description": "Access token is missing or invalid" } }, "securitySchemes": { "bearerAuth": { "type": "http", "scheme": "bearer", "bearerFormat": "JWT" } } }, "security": [{ "bearerAuth": [] }] }