{ "openapi": "3.1.1", "info": { "title": "Api | v1", "version": "1.0.0" }, "servers": [ { "url": "http://localhost:5260/" } ], "paths": { "/api/auth/register": { "post": { "tags": [ "Auth" ], "description": "Registers a new user.", "operationId": "RegisterUser", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegisterCommand" } } }, "required": true }, "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "409": { "description": "Conflict", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/auth/login": { "post": { "tags": [ "Auth" ], "description": "Authenticates a user and issues JWT tokens via HTTP-only cookies.", "operationId": "LoginUser", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginCommand" } } }, "required": true }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuthResponse" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/auth/refresh": { "post": { "tags": [ "Auth" ], "description": "Refreshes the authentication tokens using the refresh token from cookies.", "operationId": "RefreshToken", "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/auth/refresh-mobile": { "post": { "tags": [ "Auth" ], "description": "Refreshes the authentication tokens using the refresh token from body.", "operationId": "RefreshTokenForMobile", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RefreshTokenCommand" } } }, "required": true }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuthResponse" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/user/me": { "get": { "tags": [ "User" ], "description": "Retrieves the profile information of the currently authenticated user.", "operationId": "GetMe", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserMeResponse" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Not Found", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } }, "patch": { "tags": [ "User" ], "description": "Updates the profile information of the currently authenticated user.", "operationId": "UpdateProfile", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateProfileCommand" } } }, "required": true }, "responses": { "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/user/upload-avatar": { "post": { "tags": [ "User" ], "description": "Uploads an avatar image for the currently authenticated user and sets it as the profile picture.", "operationId": "UploadAvatar", "requestBody": { "content": { "multipart/form-data": { "schema": { "required": [ "fileStream" ], "type": "object", "properties": { "fileStream": { "$ref": "#/components/schemas/IFormFile" } } } } }, "required": true }, "responses": { "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/user/avatar": { "delete": { "tags": [ "User" ], "description": "Deletes the current user's avatar.", "operationId": "DeleteAvatar", "responses": { "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/user/logout": { "post": { "tags": [ "User" ], "description": "Logs out the current user and clears authentication cookies.", "operationId": "Logout", "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/services": { "get": { "tags": [ "Services" ], "description": "Retrieves a list of all available services.", "operationId": "GetServices", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ServiceResponse" } } } } }, "401": { "description": "Unauthorized", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/services/{id}": { "get": { "tags": [ "Services" ], "description": "Retrieves detailed information about a specific service by its unique ID.", "operationId": "GetServiceById", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ServiceDetailsResponse" } } } }, "401": { "description": "Unauthorized", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Not Found", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/appointments/my": { "get": { "tags": [ "Appointments" ], "description": "Retrieves all appointments for the current user.", "operationId": "GetMyAppointments", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/MyAppointmentResponse" } } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/appointments/{id}": { "get": { "tags": [ "Appointments" ], "description": "Retrieves full details for a specific appointment.", "operationId": "GetAppointmentDetails", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AppointmentDetailsResponse" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Not Found", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/appointments/available-slots": { "get": { "tags": [ "Appointments" ], "description": "Retrieves a list of available time slots for a specific master and service on a given date.", "operationId": "GetAvailableSlots", "parameters": [ { "name": "MasterId", "in": "query", "schema": { "type": "string", "format": "uuid" } }, { "name": "ServiceId", "in": "query", "required": true, "schema": { "type": "string", "format": "uuid" } }, { "name": "Date", "in": "query", "required": true, "schema": { "format": "date-time" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/SlotResponse" } } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/appointments/available-dates": { "get": { "tags": [ "Appointments" ], "description": "Retrieves a list of dates that have at least one free slot for a specific service (and master).", "operationId": "GetAvailableDates", "parameters": [ { "name": "ServiceId", "in": "query", "required": true, "schema": { "type": "string", "format": "uuid" } }, { "name": "MasterId", "in": "query", "schema": { "type": "string", "format": "uuid" } }, { "name": "Year", "in": "query", "required": true, "schema": { "pattern": "^-?(?:0|[1-9]\\d*)$", "type": [ "integer", "string" ], "format": "int32" } }, { "name": "Month", "in": "query", "required": true, "schema": { "pattern": "^-?(?:0|[1-9]\\d*)$", "type": [ "integer", "string" ], "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "string", "format": "date" } } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/appointments": { "post": { "tags": [ "Appointments" ], "description": "Books a new appointment for a specific service and master.", "operationId": "CreateAppointment", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateAppointmentCommand" } } }, "required": true }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AppointmentDetailsResponse" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Not Found", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "409": { "description": "Conflict", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/appointments/{id}/reschedule": { "post": { "tags": [ "Appointments" ], "description": "Reschedules an existing appointment to a new time. Must be done at least 24 hours in advance.", "operationId": "RescheduleAppointment", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RescheduleAppointmentCommand" } } }, "required": true }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AppointmentDetailsResponse" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Not Found", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "409": { "description": "Conflict", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/appointments/{id}/cancel": { "post": { "tags": [ "Appointments" ], "description": "Cancels an existing appointment. Must be done at least 1 hour in advance.", "operationId": "CancelAppointment", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Not Found", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/categories": { "get": { "tags": [ "Categories" ], "description": "Retrieves a list of all service categories.", "operationId": "GetCategories", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CategoryResponse" } } } } }, "401": { "description": "Unauthorized", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/master/schedule": { "get": { "tags": [ "Master (Personal Cabinet)" ], "description": "Retrieves the schedule for the current master.", "operationId": "Get My Schedule", "parameters": [ { "name": "from", "in": "query", "schema": { "format": "date-time" } }, { "name": "to", "in": "query", "schema": { "format": "date-time" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AppointmentDetailsResponse" } } } } }, "401": { "description": "Unauthorized", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/master/working-hours": { "get": { "tags": [ "Master (Personal Cabinet)" ], "description": "Retrieves the working hours for a specific master.", "operationId": "Get Master Working Hours", "parameters": [ { "name": "month", "in": "query", "schema": { "pattern": "^-?(?:0|[1-9]\\d*)$", "type": [ "integer", "string" ], "format": "int32" } }, { "name": "year", "in": "query", "schema": { "pattern": "^-?(?:0|[1-9]\\d*)$", "type": [ "integer", "string" ], "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/MasterWorkingHoursResponse" } } } } }, "401": { "description": "Unauthorized", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/masters": { "get": { "tags": [ "Masters" ], "description": "Retrieves a list of masters.", "operationId": "Get Masters", "parameters": [ { "name": "ServiceId", "in": "query", "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/MasterResponse" } } } } }, "401": { "description": "Unauthorized", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/masters/{id}": { "get": { "tags": [ "Masters" ], "description": "Retrieves detailed information about a specific master by its unique ID.", "operationId": "Get Master Details", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MasterDetailsResponse" } } } }, "401": { "description": "Unauthorized", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Not Found", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } } }, "components": { "schemas": { "AppointmentDetailsResponse": { "required": [ "id", "startTime", "endTime", "status", "clientNotes", "serviceId", "serviceName", "price", "duration", "masterId", "masterUserId", "masterFirstName", "masterLastName", "masterPhotoUrl", "clientId", "clientFirstName", "clientLastName", "clientPhone", "clientEmail", "clientPhotoUrl" ], "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "startTime": { "format": "date-time" }, "endTime": { "format": "date-time" }, "status": { "type": "string" }, "clientNotes": { "type": [ "null", "string" ] }, "serviceId": { "type": "string", "format": "uuid" }, "serviceName": { "type": "string" }, "price": { "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$", "type": [ "number", "string" ], "format": "double" }, "duration": { "pattern": "^-?(?:0|[1-9]\\d*)$", "type": [ "integer", "string" ], "format": "int32" }, "masterId": { "type": "string", "format": "uuid" }, "masterUserId": { "type": "string", "format": "uuid" }, "masterFirstName": { "type": "string" }, "masterLastName": { "type": "string" }, "masterPhotoUrl": { "type": [ "null", "string" ] }, "clientId": { "type": "string", "format": "uuid" }, "clientFirstName": { "type": "string" }, "clientLastName": { "type": "string" }, "clientPhone": { "type": "string" }, "clientEmail": { "type": [ "null", "string" ] }, "clientPhotoUrl": { "type": [ "null", "string" ] } } }, "AuthResponse": { "required": [ "id", "firstName", "email", "token", "refreshToken", "role" ], "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "firstName": { "type": "string" }, "email": { "type": "string" }, "token": { "type": "string" }, "refreshToken": { "type": "string" }, "role": { "type": "string" } } }, "CategoryResponse": { "required": [ "id", "slug" ], "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "slug": { "type": "string" } } }, "CreateAppointmentCommand": { "required": [ "serviceId", "masterId", "startTime" ], "type": "object", "properties": { "serviceId": { "type": "string", "format": "uuid" }, "masterId": { "type": [ "null", "string" ], "format": "uuid" }, "startTime": { "format": "date-time" }, "notes": { "type": [ "null", "string" ] } } }, "IFormFile": { "type": "string", "format": "binary" }, "LoginCommand": { "required": [ "email", "password" ], "type": "object", "properties": { "email": { "type": "string" }, "password": { "type": "string" } } }, "MasterDetailsResponse": { "required": [ "id", "firstName", "lastName", "photoUrl", "bio", "services" ], "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "firstName": { "type": "string" }, "lastName": { "type": "string" }, "photoUrl": { "type": [ "null", "string" ] }, "bio": { "type": [ "null", "string" ] }, "services": { "type": "array", "items": { "$ref": "#/components/schemas/ServiceResponse" } } } }, "MasterResponse": { "required": [ "id", "firstName", "lastName", "photoUrl", "bio", "serviceCategories" ], "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "firstName": { "type": "string" }, "lastName": { "type": "string" }, "photoUrl": { "type": [ "null", "string" ] }, "bio": { "type": [ "null", "string" ] }, "serviceCategories": { "type": "array", "items": { "$ref": "#/components/schemas/CategoryResponse" } } } }, "MasterShortResponse": { "required": [ "id", "firstName", "lastName", "photoUrl" ], "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "firstName": { "type": "string" }, "lastName": { "type": "string" }, "photoUrl": { "type": [ "null", "string" ] } } }, "MasterWorkingHoursResponse": { "required": [ "date", "startTimeUtc", "endTimeUtc", "isWorkingDay", "type" ], "type": "object", "properties": { "date": { "format": "date-time" }, "startTimeUtc": { "format": "date-time" }, "endTimeUtc": { "format": "date-time" }, "isWorkingDay": { "type": "boolean" }, "type": { "type": [ "null", "string" ] } } }, "MyAppointmentResponse": { "required": [ "id", "startTime", "endTime", "serviceId", "serviceName", "masterId", "masterFirstName", "masterLastName", "status", "clientNotes", "actualPrice" ], "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "startTime": { "format": "date-time" }, "endTime": { "format": "date-time" }, "serviceId": { "type": "string", "format": "uuid" }, "serviceName": { "type": "string" }, "masterId": { "type": "string", "format": "uuid" }, "masterFirstName": { "type": "string" }, "masterLastName": { "type": "string" }, "status": { "type": "string" }, "clientNotes": { "type": [ "null", "string" ] }, "actualPrice": { "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$", "type": [ "number", "string" ], "format": "double" } } }, "ProblemDetails": { "type": "object", "properties": { "type": { "type": [ "null", "string" ] }, "title": { "type": [ "null", "string" ] }, "status": { "pattern": "^-?(?:0|[1-9]\\d*)$", "type": [ "null", "integer", "string" ], "format": "int32" }, "detail": { "type": [ "null", "string" ] }, "instance": { "type": [ "null", "string" ] } } }, "RefreshTokenCommand": { "required": [ "accessToken", "refreshToken" ], "type": "object", "properties": { "accessToken": { "type": "string" }, "refreshToken": { "type": "string" } } }, "RegisterCommand": { "required": [ "firstName", "lastName", "email", "password", "phone" ], "type": "object", "properties": { "firstName": { "type": "string" }, "lastName": { "type": "string" }, "email": { "type": "string" }, "password": { "type": "string" }, "phone": { "type": "string" } } }, "RescheduleAppointmentCommand": { "required": [ "appointmentId", "newStartTime" ], "type": "object", "properties": { "appointmentId": { "type": "string", "format": "uuid" }, "newStartTime": { "format": "date-time" } } }, "ServiceDetailsResponse": { "required": [ "id", "title", "description", "duration", "price", "categorySlug", "badge", "benefits", "masters" ], "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "title": { "type": "string" }, "description": { "type": [ "null", "string" ] }, "duration": { "pattern": "^-?(?:0|[1-9]\\d*)$", "type": [ "integer", "string" ], "format": "int32" }, "price": { "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$", "type": [ "number", "string" ], "format": "double" }, "categorySlug": { "type": "string" }, "badge": { "type": [ "null", "string" ] }, "benefits": { "type": "array", "items": { "type": "string" } }, "masters": { "type": "array", "items": { "$ref": "#/components/schemas/MasterShortResponse" } } } }, "ServiceResponse": { "required": [ "id", "title", "description", "duration", "price", "badge", "categorySlug" ], "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "title": { "type": "string" }, "description": { "type": [ "null", "string" ] }, "duration": { "pattern": "^-?(?:0|[1-9]\\d*)$", "type": [ "integer", "string" ], "format": "int32" }, "price": { "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$", "type": [ "number", "string" ], "format": "double" }, "badge": { "type": [ "null", "string" ] }, "categorySlug": { "type": "string" } } }, "SlotResponse": { "required": [ "start", "end" ], "type": "object", "properties": { "start": { "format": "date-time" }, "end": { "format": "date-time" }, "availableMasters": { "type": [ "null", "array" ], "items": { "$ref": "#/components/schemas/MasterShortResponse" } } } }, "UpdateProfileCommand": { "required": [ "firstName", "lastName", "email", "phone", "currentPassword", "newPassword" ], "type": "object", "properties": { "firstName": { "type": [ "null", "string" ] }, "lastName": { "type": [ "null", "string" ] }, "email": { "type": [ "null", "string" ] }, "phone": { "type": [ "null", "string" ] }, "currentPassword": { "type": [ "null", "string" ] }, "newPassword": { "type": [ "null", "string" ] } } }, "UserMeResponse": { "required": [ "id", "firstName", "lastName", "email", "photoUrl", "phone", "role" ], "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "firstName": { "type": "string" }, "lastName": { "type": "string" }, "email": { "type": "string" }, "photoUrl": { "type": [ "null", "string" ] }, "phone": { "type": "string" }, "role": { "type": "string" } } } }, "securitySchemes": { "jwt": { "type": "http", "description": "Enter only JWT token", "scheme": "bearer", "bearerFormat": "JWT" } } }, "security": [ {} ], "tags": [ { "name": "Auth" }, { "name": "User" }, { "name": "Services" }, { "name": "Appointments" }, { "name": "Categories" }, { "name": "Master (Personal Cabinet)" }, { "name": "Masters" } ] }