{ "openapi": "3.0.1", "info": { "title": "API", "version": "1.0" }, "paths": { "/api/v1/Bookings": { "post": { "tags": [ "Bookings" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateBookingDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateBookingDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreateBookingDto" } } } }, "responses": { "201": { "description": "Created", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/BookingResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/BookingResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/BookingResponse" } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "Bearer": [ ] } ] }, "get": { "tags": [ "Bookings" ], "parameters": [ { "name": "page", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 1 } }, { "name": "pageSize", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 10 } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/BookingResponse" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/BookingResponse" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/BookingResponse" } } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/Bookings/{id}": { "get": { "tags": [ "Bookings" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/BookingResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/BookingResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/BookingResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "Bearer": [ ] } ] }, "put": { "tags": [ "Bookings" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateBookingDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UpdateBookingDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/UpdateBookingDto" } } } }, "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "Bearer": [ ] } ] }, "delete": { "tags": [ "Bookings" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CancellationRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CancellationRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CancellationRequest" } } } }, "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "409": { "description": "Conflict", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/admin/BookingsAdmin/search": { "post": { "tags": [ "BookingsAdmin" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BookingSearchFilterDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/BookingSearchFilterDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/BookingSearchFilterDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/BookingManagementResponse" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/BookingManagementResponse" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/BookingManagementResponse" } } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/admin/BookingsAdmin/{bookingId}": { "get": { "tags": [ "BookingsAdmin" ], "parameters": [ { "name": "bookingId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/BookingManagementResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/BookingManagementResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/BookingManagementResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "Bearer": [ ] } ] }, "delete": { "tags": [ "BookingsAdmin" ], "parameters": [ { "name": "bookingId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CancelBookingAdminDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CancelBookingAdminDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CancelBookingAdminDto" } } } }, "responses": { "200": { "description": "OK" }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/admin/BookingsAdmin/refunds/pending": { "get": { "tags": [ "BookingsAdmin" ], "parameters": [ { "name": "page", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 1 } }, { "name": "pageSize", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 20 } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/RefundManagementResponse" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/RefundManagementResponse" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/RefundManagementResponse" } } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/admin/BookingsAdmin/refunds/{refundId}": { "get": { "tags": [ "BookingsAdmin" ], "parameters": [ { "name": "refundId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/RefundManagementResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/RefundManagementResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RefundManagementResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/admin/BookingsAdmin/refunds/{refundId}/approve": { "post": { "tags": [ "BookingsAdmin" ], "parameters": [ { "name": "refundId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApproveRefundDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApproveRefundDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/ApproveRefundDto" } } } }, "responses": { "200": { "description": "OK" }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/admin/Dashboard/metrics": { "get": { "tags": [ "Dashboard" ], "parameters": [ { "name": "fromDate", "in": "query", "schema": { "type": "string", "format": "date-time" } }, { "name": "toDate", "in": "query", "schema": { "type": "string", "format": "date-time" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/DashboardMetricsResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/DashboardMetricsResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/DashboardMetricsResponse" } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/admin/Dashboard/health": { "get": { "tags": [ "Dashboard" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/SystemHealthResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/SystemHealthResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/SystemHealthResponse" } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/admin/Dashboard/revenue": { "get": { "tags": [ "Dashboard" ], "parameters": [ { "name": "days", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 30 } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "object", "additionalProperties": { "type": "number", "format": "double" } } }, "application/json": { "schema": { "type": "object", "additionalProperties": { "type": "number", "format": "double" } } }, "text/json": { "schema": { "type": "object", "additionalProperties": { "type": "number", "format": "double" } } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/admin/Dashboard/bookings": { "get": { "tags": [ "Dashboard" ], "parameters": [ { "name": "days", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 30 } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "object", "additionalProperties": { "type": "integer", "format": "int32" } } }, "application/json": { "schema": { "type": "object", "additionalProperties": { "type": "integer", "format": "int32" } } }, "text/json": { "schema": { "type": "object", "additionalProperties": { "type": "integer", "format": "int32" } } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/admin/Dashboard/audit-logs": { "post": { "tags": [ "Dashboard" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuditLogFilterDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuditLogFilterDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/AuditLogFilterDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AuditLogResponse" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AuditLogResponse" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AuditLogResponse" } } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/admin/Dashboard/activity": { "get": { "tags": [ "Dashboard" ], "parameters": [ { "name": "fromDate", "in": "query", "schema": { "type": "string", "format": "date-time" } }, { "name": "toDate", "in": "query", "schema": { "type": "string", "format": "date-time" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ActivitySummaryResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ActivitySummaryResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ActivitySummaryResponse" } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/admin/Dashboard/jobs": { "get": { "tags": [ "Dashboard" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "application/json": { "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "text/json": { "schema": { "type": "object", "additionalProperties": { "type": "string" } } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/Debug/no-auth": { "get": { "tags": [ "Debug" ], "responses": { "200": { "description": "OK" } } } }, "/api/v1/Debug/check-admin-roles": { "get": { "tags": [ "Debug" ], "responses": { "200": { "description": "OK" } } } }, "/api/v1/Debug/check-all-user-roles": { "get": { "tags": [ "Debug" ], "responses": { "200": { "description": "OK" } } } }, "/api/v1/Debug/with-auth": { "get": { "tags": [ "Debug" ], "responses": { "200": { "description": "OK" } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/Debug/admin-only": { "get": { "tags": [ "Debug" ], "responses": { "200": { "description": "OK" } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/Debug/claims": { "get": { "tags": [ "Debug" ], "responses": { "200": { "description": "OK" } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/Flights/search": { "post": { "tags": [ "Flights" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FlightSearchDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/FlightSearchDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/FlightSearchDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/FlightSearchResponse" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/FlightSearchResponse" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/FlightSearchResponse" } } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/v1/Flights/{id}": { "get": { "tags": [ "Flights" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/FlightDetailResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/FlightDetailResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/FlightDetailResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/v1/Flights/{flightId}/seats/{seatClassId}": { "get": { "tags": [ "Flights" ], "parameters": [ { "name": "flightId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "seatClassId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "integer", "format": "int32" } }, "application/json": { "schema": { "type": "integer", "format": "int32" } }, "text/json": { "schema": { "type": "integer", "format": "int32" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/v1/admin/FlightsAdmin": { "post": { "tags": [ "FlightsAdmin" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateFlightDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateFlightDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreateFlightDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/FlightManagementResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/FlightManagementResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/FlightManagementResponse" } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "Bearer": [ ] } ] }, "get": { "tags": [ "FlightsAdmin" ], "parameters": [ { "name": "page", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 1 } }, { "name": "pageSize", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 20 } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/FlightManagementResponse" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/FlightManagementResponse" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/FlightManagementResponse" } } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/admin/FlightsAdmin/{flightId}": { "put": { "tags": [ "FlightsAdmin" ], "parameters": [ { "name": "flightId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateFlightDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UpdateFlightDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/UpdateFlightDto" } } } }, "responses": { "200": { "description": "OK" }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "Bearer": [ ] } ] }, "delete": { "tags": [ "FlightsAdmin" ], "parameters": [ { "name": "flightId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK" }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/admin/FlightsAdmin/routes": { "post": { "tags": [ "FlightsAdmin" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateRouteDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateRouteDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreateRouteDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/RouteManagementResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/RouteManagementResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RouteManagementResponse" } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "Bearer": [ ] } ] }, "get": { "tags": [ "FlightsAdmin" ], "parameters": [ { "name": "page", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 1 } }, { "name": "pageSize", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 20 } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/RouteManagementResponse" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/RouteManagementResponse" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/RouteManagementResponse" } } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/admin/FlightsAdmin/routes/{routeId}": { "put": { "tags": [ "FlightsAdmin" ], "parameters": [ { "name": "routeId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateRouteDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UpdateRouteDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/UpdateRouteDto" } } } }, "responses": { "200": { "description": "OK" }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/Notifications": { "get": { "tags": [ "Notifications" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/NotificationResponse" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/NotificationResponse" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/NotificationResponse" } } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/Notifications/settings": { "get": { "tags": [ "Notifications" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/NotificationSettingsDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/NotificationSettingsDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/NotificationSettingsDto" } } } } }, "security": [ { "Bearer": [ ] } ] }, "put": { "tags": [ "Notifications" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotificationSettingsDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/NotificationSettingsDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/NotificationSettingsDto" } } } }, "responses": { "200": { "description": "OK" } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/Payments": { "post": { "tags": [ "Payments" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InitiatePaymentDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/InitiatePaymentDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/InitiatePaymentDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/PaymentResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/PaymentResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/PaymentResponse" } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/Payments/{paymentId}": { "get": { "tags": [ "Payments" ], "parameters": [ { "name": "paymentId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/PaymentResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/PaymentResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/PaymentResponse" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/Payments/booking/{bookingId}": { "get": { "tags": [ "Payments" ], "parameters": [ { "name": "bookingId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PaymentHistoryResponse" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PaymentHistoryResponse" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PaymentHistoryResponse" } } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/Payments/{paymentId}/callback": { "post": { "tags": [ "Payments" ], "parameters": [ { "name": "paymentId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaymentCallbackDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/PaymentCallbackDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/PaymentCallbackDto" } } } }, "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/admin/PromotionsAdmin": { "post": { "tags": [ "PromotionsAdmin" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreatePromotionDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreatePromotionDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreatePromotionDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/PromotionManagementResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/PromotionManagementResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/PromotionManagementResponse" } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "Bearer": [ ] } ] }, "get": { "tags": [ "PromotionsAdmin" ], "parameters": [ { "name": "page", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 1 } }, { "name": "pageSize", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 20 } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PromotionManagementResponse" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PromotionManagementResponse" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PromotionManagementResponse" } } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/admin/PromotionsAdmin/{promotionId}": { "put": { "tags": [ "PromotionsAdmin" ], "parameters": [ { "name": "promotionId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdatePromotionDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UpdatePromotionDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/UpdatePromotionDto" } } } }, "responses": { "200": { "description": "OK" }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "Bearer": [ ] } ] }, "delete": { "tags": [ "PromotionsAdmin" ], "parameters": [ { "name": "promotionId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK" }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/admin/PromotionsAdmin/active": { "get": { "tags": [ "PromotionsAdmin" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PromotionManagementResponse" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PromotionManagementResponse" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PromotionManagementResponse" } } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/admin/PromotionsAdmin/{promotionId}/usage": { "get": { "tags": [ "PromotionsAdmin" ], "parameters": [ { "name": "promotionId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "object", "additionalProperties": { "type": "integer", "format": "int32" } } }, "application/json": { "schema": { "type": "object", "additionalProperties": { "type": "integer", "format": "int32" } } }, "text/json": { "schema": { "type": "object", "additionalProperties": { "type": "integer", "format": "int32" } } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/admin/RealtimeDashboard/metrics": { "get": { "tags": [ "RealtimeDashboard" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/RealtimeMetricDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/RealtimeMetricDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RealtimeMetricDto" } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/admin/RealtimeDashboard/alerts": { "get": { "tags": [ "RealtimeDashboard" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AlertDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AlertDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AlertDto" } } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/admin/RealtimeDashboard/alerts/{alertId}/acknowledge": { "post": { "tags": [ "RealtimeDashboard" ], "parameters": [ { "name": "alertId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/admin/RealtimeDashboard/performance": { "get": { "tags": [ "RealtimeDashboard" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "object", "additionalProperties": { } } }, "application/json": { "schema": { "type": "object", "additionalProperties": { } } }, "text/json": { "schema": { "type": "object", "additionalProperties": { } } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/admin/RealtimeDashboard/database": { "get": { "tags": [ "RealtimeDashboard" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "object", "additionalProperties": { "type": "integer", "format": "int64" } } }, "application/json": { "schema": { "type": "object", "additionalProperties": { "type": "integer", "format": "int64" } } }, "text/json": { "schema": { "type": "object", "additionalProperties": { "type": "integer", "format": "int64" } } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/admin/RealtimeDashboard/api-analytics": { "get": { "tags": [ "RealtimeDashboard" ], "parameters": [ { "name": "days", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 30 } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "object", "additionalProperties": { } } }, "application/json": { "schema": { "type": "object", "additionalProperties": { } } }, "text/json": { "schema": { "type": "object", "additionalProperties": { } } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/admin/RealtimeDashboard/slowest-endpoints": { "get": { "tags": [ "RealtimeDashboard" ], "parameters": [ { "name": "limit", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 10 } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "type": "object", "additionalProperties": { } } } }, "application/json": { "schema": { "type": "array", "items": { "type": "object", "additionalProperties": { } } } }, "text/json": { "schema": { "type": "array", "items": { "type": "object", "additionalProperties": { } } } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/admin/RealtimeDashboard/error-rates": { "get": { "tags": [ "RealtimeDashboard" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "object", "additionalProperties": { "type": "number", "format": "double" } } }, "application/json": { "schema": { "type": "object", "additionalProperties": { "type": "number", "format": "double" } } }, "text/json": { "schema": { "type": "object", "additionalProperties": { "type": "number", "format": "double" } } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/Refunds": { "post": { "tags": [ "Refunds" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RefundRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RefundRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/RefundRequest" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/RefundResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/RefundResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RefundResponse" } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/Refunds/{refundId}": { "get": { "tags": [ "Refunds" ], "parameters": [ { "name": "refundId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/RefundResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/RefundResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RefundResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/Refunds/booking/{bookingId}": { "get": { "tags": [ "Refunds" ], "parameters": [ { "name": "bookingId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/RefundResponse" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/RefundResponse" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/RefundResponse" } } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/Reports": { "post": { "tags": [ "Reports" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportRequestDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ReportRequestDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/ReportRequestDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ReportResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ReportResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ReportResponse" } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/Reports/{reportId}": { "get": { "tags": [ "Reports" ], "parameters": [ { "name": "reportId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ReportResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ReportResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ReportResponse" } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/Reports/{reportId}/download": { "get": { "tags": [ "Reports" ], "parameters": [ { "name": "reportId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/Reports/booking-report": { "get": { "tags": [ "Reports" ], "parameters": [ { "name": "startDate", "in": "query", "schema": { "type": "string", "format": "date-time" } }, { "name": "endDate", "in": "query", "schema": { "type": "string", "format": "date-time" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/BookingReportDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/BookingReportDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/BookingReportDto" } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/Reports/revenue-report": { "get": { "tags": [ "Reports" ], "parameters": [ { "name": "startDate", "in": "query", "schema": { "type": "string", "format": "date-time" } }, { "name": "endDate", "in": "query", "schema": { "type": "string", "format": "date-time" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/RevenueReportDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/RevenueReportDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RevenueReportDto" } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/Reports/user-report": { "get": { "tags": [ "Reports" ], "parameters": [ { "name": "startDate", "in": "query", "schema": { "type": "string", "format": "date-time" } }, { "name": "endDate", "in": "query", "schema": { "type": "string", "format": "date-time" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/UserReportDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/UserReportDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UserReportDto" } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/Search/flights": { "post": { "tags": [ "Search" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdvancedSearchFilterDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AdvancedSearchFilterDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/AdvancedSearchFilterDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ObjectSearchResultDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ObjectSearchResultDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ObjectSearchResultDto" } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/Search/bookings": { "post": { "tags": [ "Search" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdvancedSearchFilterDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AdvancedSearchFilterDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/AdvancedSearchFilterDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ObjectSearchResultDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ObjectSearchResultDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ObjectSearchResultDto" } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/Search/users": { "post": { "tags": [ "Search" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdvancedSearchFilterDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AdvancedSearchFilterDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/AdvancedSearchFilterDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ObjectSearchResultDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ObjectSearchResultDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ObjectSearchResultDto" } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/Search/global": { "get": { "tags": [ "Search" ], "parameters": [ { "name": "searchTerm", "in": "query", "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "object", "additionalProperties": { } } }, "application/json": { "schema": { "type": "object", "additionalProperties": { } } }, "text/json": { "schema": { "type": "object", "additionalProperties": { } } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/Tickets/{ticketNumber}": { "get": { "tags": [ "Tickets" ], "parameters": [ { "name": "ticketNumber", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/TicketResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/TicketResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/TicketResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/Tickets/booking/{bookingId}": { "get": { "tags": [ "Tickets" ], "parameters": [ { "name": "bookingId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/TicketResponse" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/TicketResponse" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/TicketResponse" } } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/Tickets/{ticketNumber}/change": { "put": { "tags": [ "Tickets" ], "parameters": [ { "name": "ticketNumber", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ChangeTicketDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ChangeTicketDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/ChangeTicketDto" } } } }, "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/Tickets/{ticketNumber}/download": { "get": { "tags": [ "Tickets" ], "parameters": [ { "name": "ticketNumber", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "format", "in": "query", "schema": { "type": "string", "default": "pdf" } } ], "responses": { "200": { "description": "OK" }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/Users/register": { "post": { "tags": [ "Users" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegisterDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RegisterDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/RegisterDto" } } } }, "responses": { "201": { "description": "Created", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AuthResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AuthResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthResponse" } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/v1/Users/login": { "post": { "tags": [ "Users" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/LoginDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/LoginDto" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AuthResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AuthResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthResponse" } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/v1/Users/verify-email": { "post": { "tags": [ "Users" ], "parameters": [ { "name": "code", "in": "query", "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/v1/Users/change-password": { "post": { "tags": [ "Users" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ChangePasswordDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ChangePasswordDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/ChangePasswordDto" } } } }, "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/Users/forgot-password": { "post": { "tags": [ "Users" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ForgotPasswordDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ForgotPasswordDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/ForgotPasswordDto" } } } }, "responses": { "200": { "description": "OK" } } } }, "/api/v1/Users/reset-password": { "post": { "tags": [ "Users" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ResetPasswordDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ResetPasswordDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/ResetPasswordDto" } } } }, "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/v1/admin/UsersAdmin": { "get": { "tags": [ "UsersAdmin" ], "parameters": [ { "name": "page", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 1 } }, { "name": "pageSize", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 20 } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/UserManagementResponse" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/UserManagementResponse" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/UserManagementResponse" } } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/admin/UsersAdmin/{userId}": { "get": { "tags": [ "UsersAdmin" ], "parameters": [ { "name": "userId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/UserManagementResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/UserManagementResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UserManagementResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/admin/UsersAdmin/{userId}/status": { "put": { "tags": [ "UsersAdmin" ], "parameters": [ { "name": "userId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateUserStatusDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UpdateUserStatusDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/UpdateUserStatusDto" } } } }, "responses": { "200": { "description": "OK" }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/admin/UsersAdmin/{userId}/roles": { "post": { "tags": [ "UsersAdmin" ], "parameters": [ { "name": "userId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssignRoleDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AssignRoleDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/AssignRoleDto" } } } }, "responses": { "200": { "description": "OK" }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/admin/UsersAdmin/{userId}/roles/{roleId}": { "delete": { "tags": [ "UsersAdmin" ], "parameters": [ { "name": "userId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "roleId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK" }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "Bearer": [ ] } ] } }, "/api/v1/admin/UsersAdmin/{userId}/bookings": { "get": { "tags": [ "UsersAdmin" ], "parameters": [ { "name": "userId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/BookingManagementResponse" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/BookingManagementResponse" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/BookingManagementResponse" } } } } } }, "security": [ { "Bearer": [ ] } ] } } }, "components": { "schemas": { "ActivitySummaryResponse": { "type": "object", "properties": { "totalActions": { "type": "integer", "format": "int32" }, "actionsByType": { "type": "object", "additionalProperties": { "type": "integer", "format": "int32" }, "nullable": true }, "actionsByEntity": { "type": "object", "additionalProperties": { "type": "integer", "format": "int32" }, "nullable": true }, "recentActivities": { "type": "array", "items": { "$ref": "#/components/schemas/RecentActivityResponse" }, "nullable": true } }, "additionalProperties": false }, "AdvancedSearchFilterDto": { "type": "object", "properties": { "searchTerm": { "type": "string", "nullable": true }, "sortBy": { "type": "string", "nullable": true }, "sortOrder": { "type": "string", "nullable": true }, "page": { "type": "integer", "format": "int32" }, "pageSize": { "type": "integer", "format": "int32" }, "departureDateFrom": { "type": "string", "format": "date-time", "nullable": true }, "departureDateTo": { "type": "string", "format": "date-time", "nullable": true }, "departureAirport": { "type": "string", "nullable": true }, "arrivalAirport": { "type": "string", "nullable": true }, "minPrice": { "type": "number", "format": "double", "nullable": true }, "maxPrice": { "type": "number", "format": "double", "nullable": true }, "minSeatsAvailable": { "type": "integer", "format": "int32", "nullable": true }, "bookingStatus": { "type": "integer", "format": "int32", "nullable": true }, "passengerName": { "type": "string", "nullable": true }, "passengerEmail": { "type": "string", "nullable": true }, "userStatus": { "type": "integer", "format": "int32", "nullable": true }, "userRole": { "type": "string", "nullable": true }, "registrationDateFrom": { "type": "string", "format": "date-time", "nullable": true }, "registrationDateTo": { "type": "string", "format": "date-time", "nullable": true }, "refundStatus": { "type": "integer", "format": "int32", "nullable": true }, "minRefundAmount": { "type": "number", "format": "double", "nullable": true }, "maxRefundAmount": { "type": "number", "format": "double", "nullable": true } }, "additionalProperties": false }, "AlertDto": { "type": "object", "properties": { "alertId": { "type": "integer", "format": "int32" }, "type": { "type": "string", "nullable": true }, "message": { "type": "string", "nullable": true }, "details": { "type": "string", "nullable": true }, "createdAt": { "type": "string", "format": "date-time" }, "acknowledged": { "type": "boolean" } }, "additionalProperties": false }, "ApproveRefundDto": { "type": "object", "properties": { "approved": { "type": "boolean" }, "reason": { "type": "string", "nullable": true } }, "additionalProperties": false }, "AssignRoleDto": { "type": "object", "properties": { "roleId": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "AuditLogFilterDto": { "type": "object", "properties": { "userId": { "type": "integer", "format": "int32", "nullable": true }, "entity": { "type": "string", "nullable": true }, "action": { "type": "string", "nullable": true }, "fromDate": { "type": "string", "format": "date-time", "nullable": true }, "toDate": { "type": "string", "format": "date-time", "nullable": true }, "page": { "type": "integer", "format": "int32" }, "pageSize": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "AuditLogResponse": { "type": "object", "properties": { "auditLogId": { "type": "integer", "format": "int32" }, "userId": { "type": "integer", "format": "int32", "nullable": true }, "userEmail": { "type": "string", "nullable": true }, "action": { "type": "string", "nullable": true }, "entity": { "type": "string", "nullable": true }, "entityId": { "type": "integer", "format": "int32", "nullable": true }, "oldValues": { "type": "string", "nullable": true }, "newValues": { "type": "string", "nullable": true }, "ipAddress": { "type": "string", "nullable": true }, "userAgent": { "type": "string", "nullable": true }, "createdAt": { "type": "string", "format": "date-time" } }, "additionalProperties": false }, "AuthResponse": { "required": [ "email", "fullName", "token" ], "type": "object", "properties": { "userId": { "type": "integer", "format": "int32" }, "email": { "type": "string", "nullable": true }, "fullName": { "type": "string", "nullable": true }, "token": { "type": "string", "nullable": true }, "expiresAt": { "type": "string", "format": "date-time" } }, "additionalProperties": false }, "BookingManagementResponse": { "type": "object", "properties": { "bookingId": { "type": "integer", "format": "int32" }, "bookingCode": { "type": "string", "nullable": true }, "userEmail": { "type": "string", "nullable": true }, "userName": { "type": "string", "nullable": true }, "outboundFlight": { "type": "string", "nullable": true }, "returnFlight": { "type": "string", "nullable": true }, "passengerCount": { "type": "integer", "format": "int32" }, "amount": { "type": "number", "format": "double" }, "bookingStatus": { "type": "integer", "format": "int32" }, "bookingStatusName": { "type": "string", "nullable": true }, "createdAt": { "type": "string", "format": "date-time" }, "expiresAt": { "type": "string", "format": "date-time", "nullable": true } }, "additionalProperties": false }, "BookingReportDto": { "type": "object", "properties": { "totalBookings": { "type": "integer", "format": "int32" }, "totalRevenue": { "type": "number", "format": "double" }, "confirmedBookings": { "type": "integer", "format": "int32" }, "pendingBookings": { "type": "integer", "format": "int32" }, "cancelledBookings": { "type": "integer", "format": "int32" }, "averageBookingValue": { "type": "number", "format": "double" }, "dailyMetrics": { "type": "array", "items": { "$ref": "#/components/schemas/DailyBookingMetric" }, "nullable": true } }, "additionalProperties": false }, "BookingResponse": { "type": "object", "properties": { "bookingId": { "type": "integer", "format": "int32" }, "bookingCode": { "type": "string", "nullable": true }, "status": { "type": "string", "nullable": true }, "totalAmount": { "type": "number", "format": "double" }, "finalAmount": { "type": "number", "format": "double" }, "createdAt": { "type": "string", "format": "date-time" }, "expiresAt": { "type": "string", "format": "date-time", "nullable": true }, "outboundFlight": { "$ref": "#/components/schemas/FlightBookingDetail" }, "returnFlight": { "$ref": "#/components/schemas/FlightBookingDetail" }, "passengers": { "type": "array", "items": { "$ref": "#/components/schemas/PassengerDetail" }, "nullable": true } }, "additionalProperties": false }, "BookingSearchFilterDto": { "type": "object", "properties": { "bookingCode": { "type": "string", "nullable": true }, "userEmail": { "type": "string", "nullable": true }, "status": { "type": "integer", "format": "int32", "nullable": true }, "fromDate": { "type": "string", "format": "date-time", "nullable": true }, "toDate": { "type": "string", "format": "date-time", "nullable": true }, "page": { "type": "integer", "format": "int32" }, "pageSize": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "CancelBookingAdminDto": { "type": "object", "properties": { "reason": { "type": "string", "nullable": true }, "fullRefund": { "type": "boolean" } }, "additionalProperties": false }, "CancellationRequest": { "type": "object", "properties": { "reason": { "type": "string", "nullable": true } }, "additionalProperties": false }, "ChangePasswordDto": { "required": [ "newPassword", "oldPassword" ], "type": "object", "properties": { "oldPassword": { "type": "string", "nullable": true }, "newPassword": { "type": "string", "nullable": true } }, "additionalProperties": false }, "ChangeTicketDto": { "type": "object", "properties": { "newFlightId": { "type": "integer", "format": "int32" }, "newSeatNumber": { "type": "string", "nullable": true }, "reason": { "type": "string", "nullable": true } }, "additionalProperties": false }, "ChartData": { "type": "object", "properties": { "labels": { "type": "array", "items": { "type": "string" }, "nullable": true }, "values": { "type": "array", "items": { "type": "number", "format": "double" }, "nullable": true }, "title": { "type": "string", "nullable": true } }, "additionalProperties": false }, "ComponentHealth": { "type": "object", "properties": { "name": { "type": "string", "nullable": true }, "status": { "type": "string", "nullable": true }, "message": { "type": "string", "nullable": true }, "responseTimeMs": { "type": "integer", "format": "int64" } }, "additionalProperties": false }, "CreateBookingDto": { "type": "object", "properties": { "outboundFlightId": { "type": "integer", "format": "int32" }, "returnFlightId": { "type": "integer", "format": "int32", "nullable": true }, "passengerCount": { "type": "integer", "format": "int32" }, "seatClassId": { "type": "integer", "format": "int32" }, "passengers": { "type": "array", "items": { "$ref": "#/components/schemas/CreatePassengerDto" }, "nullable": true }, "promotionId": { "type": "integer", "format": "int32", "nullable": true } }, "additionalProperties": false }, "CreateFlightDto": { "type": "object", "properties": { "flightNumber": { "type": "string", "nullable": true }, "routeId": { "type": "integer", "format": "int32" }, "aircraftId": { "type": "integer", "format": "int32" }, "departureTime": { "type": "string", "format": "date-time" }, "arrivalTime": { "type": "string", "format": "date-time" }, "isActive": { "type": "boolean" } }, "additionalProperties": false }, "CreatePassengerDto": { "type": "object", "properties": { "firstName": { "type": "string", "nullable": true }, "lastName": { "type": "string", "nullable": true }, "email": { "type": "string", "nullable": true }, "phone": { "type": "string", "nullable": true }, "dateOfBirth": { "type": "string", "format": "date-time" }, "nationality": { "type": "string", "nullable": true }, "passportNumber": { "type": "string", "nullable": true } }, "additionalProperties": false }, "CreatePromotionDto": { "type": "object", "properties": { "code": { "type": "string", "nullable": true }, "description": { "type": "string", "nullable": true }, "discountType": { "type": "integer", "format": "int32" }, "discountValue": { "type": "number", "format": "double" }, "minimumAmount": { "type": "number", "format": "double" }, "usageLimit": { "type": "integer", "format": "int32", "nullable": true }, "validFrom": { "type": "string", "format": "date-time" }, "validTo": { "type": "string", "format": "date-time" } }, "additionalProperties": false }, "CreateRouteDto": { "type": "object", "properties": { "departureAirportId": { "type": "integer", "format": "int32" }, "arrivalAirportId": { "type": "integer", "format": "int32" }, "distanceKm": { "type": "integer", "format": "int32" }, "estimatedDurationMinutes": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "DailyBookingMetric": { "type": "object", "properties": { "date": { "type": "string", "format": "date-time" }, "count": { "type": "integer", "format": "int32" }, "revenue": { "type": "number", "format": "double" }, "averageValue": { "type": "number", "format": "double" } }, "additionalProperties": false }, "DailyRevenueMetric": { "type": "object", "properties": { "date": { "type": "string", "format": "date-time" }, "amount": { "type": "number", "format": "double" }, "transactionCount": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "DashboardMetricsResponse": { "type": "object", "properties": { "summary": { "$ref": "#/components/schemas/DashboardSummary" }, "bookingTrends": { "$ref": "#/components/schemas/ChartData" }, "revenueTrends": { "$ref": "#/components/schemas/ChartData" }, "topFlights": { "type": "array", "items": { "$ref": "#/components/schemas/TopFlightResponse" }, "nullable": true }, "bookingsByStatus": { "type": "object", "additionalProperties": { "type": "integer", "format": "int32" }, "nullable": true }, "paymentMethodDistribution": { "type": "object", "additionalProperties": { "type": "number", "format": "double" }, "nullable": true } }, "additionalProperties": false }, "DashboardSummary": { "type": "object", "properties": { "totalBookings": { "type": "integer", "format": "int32" }, "bookingsToday": { "type": "integer", "format": "int32" }, "totalRevenue": { "type": "number", "format": "double" }, "todayRevenue": { "type": "number", "format": "double" }, "activeUsers": { "type": "integer", "format": "int32" }, "pendingRefunds": { "type": "integer", "format": "int32" }, "occupancyRate": { "type": "number", "format": "double" }, "upcomingFlights": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "FlightBookingDetail": { "type": "object", "properties": { "flightId": { "type": "integer", "format": "int32" }, "flightNumber": { "type": "string", "nullable": true }, "departureAirport": { "type": "string", "nullable": true }, "arrivalAirport": { "type": "string", "nullable": true }, "departureTime": { "type": "string", "format": "date-time" }, "arrivalTime": { "type": "string", "format": "date-time" }, "seatClass": { "type": "string", "nullable": true }, "price": { "type": "number", "format": "double" } }, "additionalProperties": false }, "FlightDetailResponse": { "type": "object", "properties": { "flightId": { "type": "integer", "format": "int32" }, "flightNumber": { "type": "string", "nullable": true }, "departureTime": { "type": "string", "format": "date-time" }, "arrivalTime": { "type": "string", "format": "date-time" }, "departureAirport": { "type": "string", "nullable": true }, "arrivalAirport": { "type": "string", "nullable": true }, "distanceKm": { "type": "integer", "format": "int32" }, "durationMinutes": { "type": "integer", "format": "int32" }, "aircraftModel": { "type": "string", "nullable": true }, "seatInventory": { "type": "object", "additionalProperties": { "$ref": "#/components/schemas/SeatClassDetail" }, "nullable": true } }, "additionalProperties": false }, "FlightManagementResponse": { "type": "object", "properties": { "flightId": { "type": "integer", "format": "int32" }, "flightNumber": { "type": "string", "nullable": true }, "routeCode": { "type": "string", "nullable": true }, "aircraftModel": { "type": "string", "nullable": true }, "departureTime": { "type": "string", "format": "date-time" }, "arrivalTime": { "type": "string", "format": "date-time" }, "totalSeats": { "type": "integer", "format": "int32" }, "availableSeats": { "type": "integer", "format": "int32" }, "bookedSeats": { "type": "integer", "format": "int32" }, "isActive": { "type": "boolean" }, "createdAt": { "type": "string", "format": "date-time" } }, "additionalProperties": false }, "FlightSearchDto": { "type": "object", "properties": { "departureAirportId": { "type": "integer", "format": "int32" }, "arrivalAirportId": { "type": "integer", "format": "int32" }, "departureDate": { "type": "string", "format": "date-time" }, "returnDate": { "type": "string", "format": "date-time", "nullable": true }, "passengerCount": { "type": "integer", "format": "int32" }, "seatPreference": { "type": "integer", "format": "int32", "nullable": true } }, "additionalProperties": false }, "FlightSearchResponse": { "type": "object", "properties": { "flightId": { "type": "integer", "format": "int32" }, "flightNumber": { "type": "string", "nullable": true }, "departureAirport": { "type": "string", "nullable": true }, "arrivalAirport": { "type": "string", "nullable": true }, "departureTime": { "type": "string", "format": "date-time" }, "arrivalTime": { "type": "string", "format": "date-time" }, "durationMinutes": { "type": "integer", "format": "int32" }, "availableSeatsByClass": { "type": "object", "additionalProperties": { "type": "integer", "format": "int32" }, "nullable": true }, "pricesByClass": { "type": "object", "additionalProperties": { "type": "number", "format": "double" }, "nullable": true }, "airlineCode": { "type": "string", "nullable": true }, "aircraftModel": { "type": "string", "nullable": true } }, "additionalProperties": false }, "ForgotPasswordDto": { "required": [ "email" ], "type": "object", "properties": { "email": { "type": "string", "nullable": true } }, "additionalProperties": false }, "InitiatePaymentDto": { "type": "object", "properties": { "bookingId": { "type": "integer", "format": "int32" }, "paymentMethod": { "type": "string", "nullable": true }, "promoCode": { "type": "string", "nullable": true } }, "additionalProperties": false }, "LoginDto": { "required": [ "email", "password" ], "type": "object", "properties": { "email": { "type": "string", "nullable": true }, "password": { "type": "string", "nullable": true } }, "additionalProperties": false }, "NotificationResponse": { "type": "object", "properties": { "notificationId": { "type": "integer", "format": "int32" }, "userId": { "type": "integer", "format": "int32" }, "userEmail": { "type": "string", "nullable": true }, "subject": { "type": "string", "nullable": true }, "message": { "type": "string", "nullable": true }, "type": { "type": "string", "nullable": true }, "status": { "type": "string", "nullable": true }, "createdAt": { "type": "string", "format": "date-time" }, "sentAt": { "type": "string", "format": "date-time", "nullable": true }, "errorMessage": { "type": "string", "nullable": true } }, "additionalProperties": false }, "NotificationSettingsDto": { "type": "object", "properties": { "emailNotifications": { "type": "boolean" }, "smsNotifications": { "type": "boolean" }, "pushNotifications": { "type": "boolean" }, "bookingConfirmation": { "type": "boolean" }, "paymentReminder": { "type": "boolean" }, "refundNotification": { "type": "boolean" }, "promoNotifications": { "type": "boolean" } }, "additionalProperties": false }, "ObjectSearchResultDto": { "type": "object", "properties": { "items": { "type": "array", "items": { }, "nullable": true }, "totalCount": { "type": "integer", "format": "int32" }, "totalPages": { "type": "integer", "format": "int32" }, "currentPage": { "type": "integer", "format": "int32" }, "pageSize": { "type": "integer", "format": "int32" }, "hasNextPage": { "type": "boolean", "readOnly": true }, "hasPreviousPage": { "type": "boolean", "readOnly": true } }, "additionalProperties": false }, "PassengerDetail": { "type": "object", "properties": { "passengerId": { "type": "integer", "format": "int32" }, "firstName": { "type": "string", "nullable": true }, "lastName": { "type": "string", "nullable": true }, "email": { "type": "string", "nullable": true }, "phone": { "type": "string", "nullable": true }, "passportNumber": { "type": "string", "nullable": true }, "status": { "type": "string", "nullable": true } }, "additionalProperties": false }, "PaymentCallbackDto": { "type": "object", "properties": { "transactionId": { "type": "string", "nullable": true }, "status": { "type": "string", "nullable": true }, "amount": { "type": "number", "format": "double" }, "signature": { "type": "string", "nullable": true }, "additionalData": { "type": "object", "additionalProperties": { "type": "string" }, "nullable": true }, "rawData": { "type": "string", "nullable": true } }, "additionalProperties": false }, "PaymentHistoryResponse": { "type": "object", "properties": { "paymentId": { "type": "integer", "format": "int32" }, "amount": { "type": "number", "format": "double" }, "status": { "type": "string", "nullable": true }, "provider": { "type": "string", "nullable": true }, "createdAt": { "type": "string", "format": "date-time" }, "paidAt": { "type": "string", "format": "date-time", "nullable": true } }, "additionalProperties": false }, "PaymentResponse": { "type": "object", "properties": { "paymentId": { "type": "integer", "format": "int32" }, "bookingId": { "type": "integer", "format": "int32" }, "status": { "type": "string", "nullable": true }, "amount": { "type": "number", "format": "double" }, "provider": { "type": "string", "nullable": true }, "transactionRef": { "type": "string", "nullable": true }, "paymentLink": { "type": "string", "nullable": true }, "qrCode": { "type": "string", "nullable": true }, "createdAt": { "type": "string", "format": "date-time" }, "paidAt": { "type": "string", "format": "date-time", "nullable": true }, "expiresAt": { "type": "string", "format": "date-time", "nullable": true } }, "additionalProperties": false }, "ProblemDetails": { "type": "object", "properties": { "type": { "type": "string", "nullable": true }, "title": { "type": "string", "nullable": true }, "status": { "type": "integer", "format": "int32", "nullable": true }, "detail": { "type": "string", "nullable": true }, "instance": { "type": "string", "nullable": true } }, "additionalProperties": { } }, "PromotionManagementResponse": { "type": "object", "properties": { "promotionId": { "type": "integer", "format": "int32" }, "code": { "type": "string", "nullable": true }, "description": { "type": "string", "nullable": true }, "discountType": { "type": "integer", "format": "int32" }, "discountValue": { "type": "number", "format": "double" }, "minimumAmount": { "type": "number", "format": "double" }, "usageLimit": { "type": "integer", "format": "int32", "nullable": true }, "usageCount": { "type": "integer", "format": "int32" }, "isActive": { "type": "boolean" }, "validFrom": { "type": "string", "format": "date-time" }, "validTo": { "type": "string", "format": "date-time" }, "createdAt": { "type": "string", "format": "date-time" } }, "additionalProperties": false }, "RealtimeMetricDto": { "type": "object", "properties": { "activeUsers": { "type": "integer", "format": "int32" }, "bookingsInProgress": { "type": "integer", "format": "int32" }, "paymentsProcessing": { "type": "integer", "format": "int32" }, "pendingRefunds": { "type": "integer", "format": "int32" }, "todayRevenue": { "type": "number", "format": "double" }, "todayBookings": { "type": "integer", "format": "int32" }, "systemLoad": { "type": "number", "format": "double" }, "lastUpdated": { "type": "string", "format": "date-time" } }, "additionalProperties": false }, "RecentActivityResponse": { "type": "object", "properties": { "action": { "type": "string", "nullable": true }, "entity": { "type": "string", "nullable": true }, "userEmail": { "type": "string", "nullable": true }, "timestamp": { "type": "string", "format": "date-time" } }, "additionalProperties": false }, "RefundManagementResponse": { "type": "object", "properties": { "refundId": { "type": "integer", "format": "int32" }, "bookingCode": { "type": "string", "nullable": true }, "userEmail": { "type": "string", "nullable": true }, "bookingAmount": { "type": "number", "format": "double" }, "refundAmount": { "type": "number", "format": "double" }, "refundStatus": { "type": "integer", "format": "int32" }, "refundStatusName": { "type": "string", "nullable": true }, "requestedAt": { "type": "string", "format": "date-time" }, "processedAt": { "type": "string", "format": "date-time", "nullable": true } }, "additionalProperties": false }, "RefundRequest": { "type": "object", "properties": { "bookingId": { "type": "integer", "format": "int32" }, "reason": { "type": "string", "nullable": true } }, "additionalProperties": false }, "RefundResponse": { "type": "object", "properties": { "refundId": { "type": "integer", "format": "int32" }, "bookingId": { "type": "integer", "format": "int32" }, "amount": { "type": "number", "format": "double" }, "reason": { "type": "string", "nullable": true }, "status": { "type": "string", "nullable": true }, "requestedAt": { "type": "string", "format": "date-time" }, "processedAt": { "type": "string", "format": "date-time", "nullable": true }, "refundPercent": { "type": "number", "format": "double" }, "penaltyFee": { "type": "number", "format": "double" } }, "additionalProperties": false }, "RegisterDto": { "required": [ "email", "fullName", "password", "phone" ], "type": "object", "properties": { "email": { "type": "string", "nullable": true }, "password": { "type": "string", "nullable": true }, "fullName": { "type": "string", "nullable": true }, "phone": { "type": "string", "nullable": true } }, "additionalProperties": false }, "ReportRequestDto": { "type": "object", "properties": { "reportType": { "type": "string", "nullable": true }, "startDate": { "type": "string", "format": "date-time" }, "endDate": { "type": "string", "format": "date-time" }, "format": { "type": "string", "nullable": true } }, "additionalProperties": false }, "ReportResponse": { "type": "object", "properties": { "reportId": { "type": "integer", "format": "int32" }, "reportType": { "type": "string", "nullable": true }, "format": { "type": "string", "nullable": true }, "status": { "type": "string", "nullable": true }, "fileUrl": { "type": "string", "nullable": true }, "fileSize": { "type": "integer", "format": "int64", "nullable": true }, "createdAt": { "type": "string", "format": "date-time" }, "generatedAt": { "type": "string", "format": "date-time", "nullable": true }, "generatedByUserId": { "type": "integer", "format": "int32", "nullable": true } }, "additionalProperties": false }, "ResetPasswordDto": { "required": [ "code", "newPassword" ], "type": "object", "properties": { "code": { "type": "string", "nullable": true }, "newPassword": { "type": "string", "nullable": true } }, "additionalProperties": false }, "RevenueReportDto": { "type": "object", "properties": { "totalRevenue": { "type": "number", "format": "double" }, "averageTransactionValue": { "type": "number", "format": "double" }, "revenueByPaymentMethod": { "type": "object", "additionalProperties": { "type": "number", "format": "double" }, "nullable": true }, "revenueByRoute": { "type": "object", "additionalProperties": { "type": "number", "format": "double" }, "nullable": true }, "dailyMetrics": { "type": "array", "items": { "$ref": "#/components/schemas/DailyRevenueMetric" }, "nullable": true } }, "additionalProperties": false }, "RouteManagementResponse": { "type": "object", "properties": { "routeId": { "type": "integer", "format": "int32" }, "departureAirport": { "type": "string", "nullable": true }, "arrivalAirport": { "type": "string", "nullable": true }, "distanceKm": { "type": "integer", "format": "int32" }, "estimatedDurationMinutes": { "type": "integer", "format": "int32" }, "activeFlights": { "type": "integer", "format": "int32" }, "isActive": { "type": "boolean" } }, "additionalProperties": false }, "SeatClassDetail": { "type": "object", "properties": { "seatClassId": { "type": "integer", "format": "int32" }, "className": { "type": "string", "nullable": true }, "totalSeats": { "type": "integer", "format": "int32" }, "availableSeats": { "type": "integer", "format": "int32" }, "heldSeats": { "type": "integer", "format": "int32" }, "soldSeats": { "type": "integer", "format": "int32" }, "currentPrice": { "type": "number", "format": "double" }, "basePrice": { "type": "number", "format": "double" } }, "additionalProperties": false }, "SystemHealthResponse": { "type": "object", "properties": { "status": { "type": "string", "nullable": true }, "components": { "type": "object", "additionalProperties": { "$ref": "#/components/schemas/ComponentHealth" }, "nullable": true }, "lastCheck": { "type": "string", "format": "date-time" } }, "additionalProperties": false }, "TicketResponse": { "type": "object", "properties": { "ticketId": { "type": "integer", "format": "int32" }, "ticketNumber": { "type": "string", "nullable": true }, "bookingId": { "type": "integer", "format": "int32" }, "passengerId": { "type": "integer", "format": "int32" }, "passengerName": { "type": "string", "nullable": true }, "flightId": { "type": "integer", "format": "int32" }, "flightNumber": { "type": "string", "nullable": true }, "seatNumber": { "type": "string", "nullable": true }, "status": { "type": "string", "nullable": true }, "issuedAt": { "type": "string", "format": "date-time" }, "qrCode": { "type": "string", "nullable": true }, "departureTime": { "type": "string", "format": "date-time" }, "departureAirport": { "type": "string", "nullable": true }, "arrivalAirport": { "type": "string", "nullable": true } }, "additionalProperties": false }, "TopFlightResponse": { "type": "object", "properties": { "flightId": { "type": "integer", "format": "int32" }, "flightNumber": { "type": "string", "nullable": true }, "route": { "type": "string", "nullable": true }, "totalBookings": { "type": "integer", "format": "int32" }, "revenue": { "type": "number", "format": "double" }, "occupancyPercent": { "type": "number", "format": "double" } }, "additionalProperties": false }, "UpdateBookingDto": { "type": "object", "properties": { "passengers": { "type": "array", "items": { "$ref": "#/components/schemas/UpdatePassengerDto" }, "nullable": true } }, "additionalProperties": false }, "UpdateFlightDto": { "type": "object", "properties": { "flightNumber": { "type": "string", "nullable": true }, "aircraftId": { "type": "integer", "format": "int32", "nullable": true }, "departureTime": { "type": "string", "format": "date-time", "nullable": true }, "arrivalTime": { "type": "string", "format": "date-time", "nullable": true }, "isActive": { "type": "boolean", "nullable": true } }, "additionalProperties": false }, "UpdatePassengerDto": { "type": "object", "properties": { "passengerId": { "type": "integer", "format": "int32" }, "firstName": { "type": "string", "nullable": true }, "lastName": { "type": "string", "nullable": true }, "email": { "type": "string", "nullable": true }, "phone": { "type": "string", "nullable": true }, "passportNumber": { "type": "string", "nullable": true } }, "additionalProperties": false }, "UpdatePromotionDto": { "type": "object", "properties": { "description": { "type": "string", "nullable": true }, "discountValue": { "type": "number", "format": "double", "nullable": true }, "usageLimit": { "type": "integer", "format": "int32", "nullable": true }, "validTo": { "type": "string", "format": "date-time", "nullable": true }, "isActive": { "type": "boolean", "nullable": true } }, "additionalProperties": false }, "UpdateRouteDto": { "type": "object", "properties": { "departureAirportId": { "type": "integer", "format": "int32", "nullable": true }, "arrivalAirportId": { "type": "integer", "format": "int32", "nullable": true }, "distanceKm": { "type": "integer", "format": "int32", "nullable": true }, "estimatedDurationMinutes": { "type": "integer", "format": "int32", "nullable": true } }, "additionalProperties": false }, "UpdateUserStatusDto": { "type": "object", "properties": { "status": { "type": "integer", "format": "int32" }, "reason": { "type": "string", "nullable": true } }, "additionalProperties": false }, "UserManagementResponse": { "type": "object", "properties": { "userId": { "type": "integer", "format": "int32" }, "email": { "type": "string", "nullable": true }, "fullName": { "type": "string", "nullable": true }, "phone": { "type": "string", "nullable": true }, "status": { "type": "integer", "format": "int32" }, "statusName": { "type": "string", "nullable": true }, "roles": { "type": "array", "items": { "type": "string" }, "nullable": true }, "bookingCount": { "type": "integer", "format": "int32" }, "totalSpent": { "type": "number", "format": "double" }, "createdAt": { "type": "string", "format": "date-time" }, "lastLogin": { "type": "string", "format": "date-time", "nullable": true } }, "additionalProperties": false }, "UserReportDto": { "type": "object", "properties": { "totalUsers": { "type": "integer", "format": "int32" }, "activeUsers": { "type": "integer", "format": "int32" }, "newUsersThisPeriod": { "type": "integer", "format": "int32" }, "usersWithBookings": { "type": "integer", "format": "int32" }, "averageSpendPerUser": { "type": "number", "format": "double" }, "segments": { "type": "array", "items": { "$ref": "#/components/schemas/UserSegmentMetric" }, "nullable": true } }, "additionalProperties": false }, "UserSegmentMetric": { "type": "object", "properties": { "segment": { "type": "string", "nullable": true }, "count": { "type": "integer", "format": "int32" }, "averageSpend": { "type": "number", "format": "double" } }, "additionalProperties": false } }, "securitySchemes": { "Bearer": { "type": "http", "description": "Enter JWT Bearer token", "scheme": "bearer", "bearerFormat": "JWT" } } }, "security": [ { "Bearer": [ ] } ] }