{ "x-generator": "NSwag v14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))", "openapi": "3.0.0", "info": { "title": "online", "version": "v1" }, "servers": [ { "url": "http://localhost:5000" } ], "paths": { "/api/auth/info": { "get": { "tags": [ "TickerQ Dashboard" ], "operationId": "GetAuthInfo", "responses": { "200": { "description": "" } } } }, "/api/auth/validate": { "post": { "tags": [ "TickerQ Dashboard" ], "operationId": "ValidateAuth", "responses": { "200": { "description": "" } } } }, "/api/options": { "get": { "tags": [ "TickerQ Dashboard" ], "operationId": "GetOptions", "responses": { "200": { "description": "" } } } }, "/api/time-tickers": { "get": { "tags": [ "TickerQ Dashboard" ], "operationId": "GetTimeTickers", "responses": { "200": { "description": "" } } } }, "/api/time-tickers/paginated": { "get": { "tags": [ "TickerQ Dashboard" ], "operationId": "GetTimeTickersPaginated", "parameters": [ { "name": "pageNumber", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 1 }, "x-position": 1 }, { "name": "pageSize", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 20 }, "x-position": 2 } ], "responses": { "200": { "description": "" } } } }, "/api/time-tickers/graph-data-range": { "get": { "tags": [ "TickerQ Dashboard" ], "operationId": "GetTimeTickersGraphDataRange", "parameters": [ { "name": "pastDays", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 3 }, "x-position": 1 }, { "name": "futureDays", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 3 }, "x-position": 2 } ], "responses": { "200": { "description": "" } } } }, "/api/time-tickers/graph-data": { "get": { "tags": [ "TickerQ Dashboard" ], "operationId": "GetTimeTickersGraphData", "responses": { "200": { "description": "" } } } }, "/api/time-ticker/add": { "post": { "tags": [ "TickerQ Dashboard" ], "operationId": "CreateChainJobs", "parameters": [ { "name": "timeZoneId", "in": "query", "required": true, "schema": { "type": "string" }, "x-position": 1 } ], "responses": { "200": { "description": "" } } } }, "/api/time-ticker/update": { "put": { "tags": [ "TickerQ Dashboard" ], "operationId": "UpdateTimeTicker", "parameters": [ { "name": "id", "in": "query", "required": true, "schema": { "type": "string", "format": "guid" }, "x-position": 1 }, { "name": "timeZoneId", "in": "query", "required": true, "schema": { "type": "string" }, "x-position": 2 } ], "responses": { "200": { "description": "" } } } }, "/api/time-ticker/delete": { "delete": { "tags": [ "TickerQ Dashboard" ], "operationId": "DeleteTimeTicker", "parameters": [ { "name": "id", "in": "query", "required": true, "schema": { "type": "string", "format": "guid" }, "x-position": 1 } ], "responses": { "200": { "description": "" } } } }, "/api/time-ticker/delete-batch": { "delete": { "tags": [ "TickerQ Dashboard" ], "operationId": "DeleteTimeTickersBatch", "requestBody": { "x-name": "ids", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "string", "format": "guid" } } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "" } } } }, "/api/cron-tickers": { "get": { "tags": [ "TickerQ Dashboard" ], "operationId": "GetCronTickers", "responses": { "200": { "description": "" } } } }, "/api/cron-tickers/paginated": { "get": { "tags": [ "TickerQ Dashboard" ], "operationId": "GetCronTickersPaginated", "parameters": [ { "name": "pageNumber", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 1 }, "x-position": 1 }, { "name": "pageSize", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 20 }, "x-position": 2 } ], "responses": { "200": { "description": "" } } } }, "/api/cron-tickers/graph-data-range": { "get": { "tags": [ "TickerQ Dashboard" ], "operationId": "GetCronTickersGraphDataRange", "parameters": [ { "name": "pastDays", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 3 }, "x-position": 1 }, { "name": "futureDays", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 3 }, "x-position": 2 } ], "responses": { "200": { "description": "" } } } }, "/api/cron-tickers/graph-data-range-id": { "get": { "tags": [ "TickerQ Dashboard" ], "operationId": "GetCronTickersByIdGraphDataRange", "parameters": [ { "name": "id", "in": "query", "required": true, "schema": { "type": "string", "format": "guid" }, "x-position": 1 }, { "name": "pastDays", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 3 }, "x-position": 2 }, { "name": "futureDays", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 3 }, "x-position": 3 } ], "responses": { "200": { "description": "" } } } }, "/api/cron-tickers/graph-data": { "get": { "tags": [ "TickerQ Dashboard" ], "operationId": "GetCronTickersGraphData", "responses": { "200": { "description": "" } } } }, "/api/cron-ticker-occurrences/{cronTickerId}": { "get": { "tags": [ "TickerQ Dashboard" ], "operationId": "GetCronTickerOccurrences", "parameters": [ { "name": "cronTickerId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" }, "x-position": 1 } ], "responses": { "200": { "description": "" } } } }, "/api/cron-ticker-occurrences/{cronTickerId}/paginated": { "get": { "tags": [ "TickerQ Dashboard" ], "operationId": "GetCronTickerOccurrencesPaginated", "parameters": [ { "name": "cronTickerId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" }, "x-position": 1 }, { "name": "pageNumber", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 1 }, "x-position": 2 }, { "name": "pageSize", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 20 }, "x-position": 3 } ], "responses": { "200": { "description": "" } } } }, "/api/cron-ticker-occurrences/{cronTickerId}/graph-data": { "get": { "tags": [ "TickerQ Dashboard" ], "operationId": "GetCronTickerOccurrencesGraphData", "parameters": [ { "name": "cronTickerId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" }, "x-position": 1 } ], "responses": { "200": { "description": "" } } } }, "/api/cron-ticker/add": { "post": { "tags": [ "TickerQ Dashboard" ], "operationId": "AddCronTicker", "responses": { "200": { "description": "" } } } }, "/api/cron-ticker/update": { "put": { "tags": [ "TickerQ Dashboard" ], "operationId": "UpdateCronTicker", "parameters": [ { "name": "id", "in": "query", "required": true, "schema": { "type": "string", "format": "guid" }, "x-position": 1 } ], "responses": { "200": { "description": "" } } } }, "/api/cron-ticker/toggle": { "put": { "tags": [ "TickerQ Dashboard" ], "operationId": "ToggleCronTicker", "parameters": [ { "name": "id", "in": "query", "required": true, "schema": { "type": "string", "format": "guid" }, "x-position": 1 }, { "name": "isEnabled", "in": "query", "required": true, "schema": { "type": "boolean" }, "x-position": 2 } ], "responses": { "200": { "description": "" } } } }, "/api/cron-ticker/run": { "post": { "tags": [ "TickerQ Dashboard" ], "operationId": "RunCronTickerOnDemand", "parameters": [ { "name": "id", "in": "query", "required": true, "schema": { "type": "string", "format": "guid" }, "x-position": 1 } ], "responses": { "200": { "description": "" } } } }, "/api/cron-ticker/delete": { "delete": { "tags": [ "TickerQ Dashboard" ], "operationId": "DeleteCronTicker", "parameters": [ { "name": "id", "in": "query", "required": true, "schema": { "type": "string", "format": "guid" }, "x-position": 1 } ], "responses": { "200": { "description": "" } } } }, "/api/cron-ticker-occurrence/delete": { "delete": { "tags": [ "TickerQ Dashboard" ], "operationId": "DeleteCronTickerOccurrence", "parameters": [ { "name": "id", "in": "query", "required": true, "schema": { "type": "string", "format": "guid" }, "x-position": 1 } ], "responses": { "200": { "description": "" } } } }, "/api/ticker/cancel": { "post": { "tags": [ "TickerQ Dashboard" ], "operationId": "CancelTicker", "parameters": [ { "name": "id", "in": "query", "required": true, "schema": { "type": "string", "format": "guid" }, "x-position": 1 } ], "responses": { "200": { "description": "" } } } }, "/api/ticker-request": { "get": { "tags": [ "TickerQ Dashboard" ], "operationId": "GetTickerRequest", "parameters": [ { "name": "tickerId", "in": "query", "required": true, "schema": { "type": "string", "format": "guid" }, "x-position": 1 }, { "name": "tickerType", "in": "query", "required": true, "schema": { "$ref": "#/components/schemas/TickerType" }, "x-position": 2 } ], "responses": { "200": { "description": "" } } } }, "/api/ticker-functions": { "get": { "tags": [ "TickerQ Dashboard" ], "operationId": "GetTickerFunctions", "responses": { "200": { "description": "" } } } }, "/api/ticker-host/next-ticker": { "get": { "tags": [ "TickerQ Dashboard" ], "operationId": "GetNextTicker", "responses": { "200": { "description": "" } } } }, "/api/ticker-host/stop": { "post": { "tags": [ "TickerQ Dashboard" ], "operationId": "StopTickerHost", "responses": { "200": { "description": "" } } } }, "/api/ticker-host/start": { "post": { "tags": [ "TickerQ Dashboard" ], "operationId": "StartTickerHost", "responses": { "200": { "description": "" } } } }, "/api/ticker-host/restart": { "post": { "tags": [ "TickerQ Dashboard" ], "operationId": "RestartTickerHost", "responses": { "200": { "description": "" } } } }, "/api/ticker-host/status": { "get": { "tags": [ "TickerQ Dashboard" ], "operationId": "GetTickerHostStatus", "responses": { "200": { "description": "" } } } }, "/api/ticker/statuses/get-last-week": { "get": { "tags": [ "TickerQ Dashboard" ], "operationId": "GetLastWeekJobStatus", "responses": { "200": { "description": "" } } } }, "/api/ticker/statuses/get": { "get": { "tags": [ "TickerQ Dashboard" ], "operationId": "GetJobStatuses", "responses": { "200": { "description": "" } } } }, "/api/ticker/machine/jobs": { "get": { "tags": [ "TickerQ Dashboard" ], "operationId": "GetMachineJobs", "responses": { "200": { "description": "" } } } }, "/test": { "get": { "tags": [ "Test" ], "operationId": "Test", "parameters": [ { "name": "name", "in": "query", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TestResponse" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/slot/contracts/{id}": { "get": { "tags": [ "Slot" ], "operationId": "SlotGetContracts", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/SlotGetContractsResponse" } } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/slot": { "get": { "tags": [ "Slot" ], "operationId": "SlotGetAll", "parameters": [ { "name": "facilityId", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "date", "in": "query", "required": true, "schema": { "type": "string", "format": "date-time" } } ], "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/SlotGetAllResponse" } } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/slot/available": { "post": { "tags": [ "Slot" ], "operationId": "SlotAvailable", "requestBody": { "x-name": "AvailableSlotRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AvailableSlotRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "boolean" } } } } } } }, "/outlet": { "get": { "tags": [ "Outlet" ], "operationId": "OutletGetAll", "parameters": [ { "name": "sorts", "in": "query", "schema": { "type": "string", "nullable": true } }, { "name": "filters", "in": "query", "schema": { "type": "string", "nullable": true } }, { "name": "page", "in": "query", "schema": { "type": "integer", "format": "int32", "nullable": true } }, { "name": "pageSize", "in": "query", "schema": { "type": "integer", "format": "int32", "nullable": true } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedListOfOutlet" } } } } } } }, "/outlet/{slug}": { "get": { "tags": [ "Outlet" ], "operationId": "OutletGet", "parameters": [ { "name": "slug", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OutletDTO" } } } } } } }, "/outlet/{slug}/admin": { "get": { "tags": [ "Outlet" ], "operationId": "OutletAdminGet", "parameters": [ { "name": "slug", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OutletDTO" } } } } } } }, "/extra/facility/{facilityId}": { "get": { "tags": [ "Extra" ], "operationId": "ExtraGetFacility", "parameters": [ { "name": "facilityId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Extra" } } } } } } } }, "/example": { "get": { "tags": [ "Example" ], "operationId": "Example", "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "string" } } } } } } }, "/example/verify": { "get": { "tags": [ "Example" ], "operationId": "ExampleVerify", "parameters": [ { "name": "code", "in": "query", "required": true, "schema": { "type": "string" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "boolean" } } } } } } }, "/booking/status": { "put": { "tags": [ "Booking" ], "operationId": "BookingUpdateStatus", "requestBody": { "x-name": "BookingUpdateStatusRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BookingUpdateStatusRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "204": { "description": "No Content" } } } }, "/booking/{id}": { "get": { "tags": [ "Booking" ], "operationId": "BookingGet", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BookingDTO" } } } } } } }, "/booking": { "post": { "tags": [ "Booking" ], "operationId": "BookingCreate", "requestBody": { "x-name": "BookingCreateRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BookingCreateRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BookingCreateResponse" } } } } } } }, "/user/role": { "post": { "tags": [ "User" ], "operationId": "UserRole", "requestBody": { "x-name": "UserRoleRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserRoleRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "boolean" } } } }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } } } } }, "/account/register": { "post": { "tags": [ "Account" ], "operationId": "Register", "requestBody": { "x-name": "UserRegisterRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserRegisterRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "204": { "description": "No Content" } } } }, "/account/refresh": { "post": { "tags": [ "Account" ], "operationId": "Refresh", "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserModel" } } } } } } }, "/account/refresh/revokeAll": { "post": { "tags": [ "Account" ], "operationId": "RefreshRevokeAll", "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "204": { "description": "No Content" } } } }, "/account/refresh/revoke": { "post": { "tags": [ "Account" ], "operationId": "RefreshRevoke", "requestBody": { "x-name": "RefreshRevokeRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RefreshRevokeRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "204": { "description": "No Content" } } } }, "/account/refresh/list": { "get": { "tags": [ "Account" ], "operationId": "RefreshList", "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/RefreshListResponse" } } } } } } } }, "/account/passkey": { "post": { "tags": [ "Account" ], "operationId": "Passkey", "requestBody": { "x-name": "PasskeyRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PasskeyRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "string" } } } } } } }, "/account/me": { "get": { "tags": [ "Account" ], "operationId": "AccountMe", "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserModel" } } } }, "401": { "description": "Unauthorized" } } } }, "/account/logout": { "post": { "tags": [ "Account" ], "operationId": "Logout", "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "boolean" } } } } } } }, "/account/login": { "post": { "tags": [ "Account" ], "operationId": "Login", "requestBody": { "x-name": "LoginRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginRequest" } } }, "required": true, "x-position": 1 }, "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "boolean" } } } } } } }, "/account/login/google": { "get": { "tags": [ "Account" ], "operationId": "LoginGoogle", "parameters": [ { "name": "returnUrl", "in": "query", "required": true, "schema": { "type": "string" } } ], "responses": { "500": { "description": "Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InternalErrorResponse" } } } }, "204": { "description": "No Content" } } } } }, "components": { "schemas": { "TickerType": { "type": "integer", "description": "", "x-enumNames": [ "CronTickerOccurrence", "TimeTicker" ], "enum": [ 0, 1 ] }, "InternalErrorResponse": { "type": "object", "description": "the dto used to send an error response to the client when an unhandled exception occurs on the server", "additionalProperties": false, "required": [ "status", "code", "reason", "note" ], "properties": { "status": { "type": "string", "description": "error status", "default": "Internal Server Error!" }, "code": { "type": "integer", "description": "http status code of the error response", "format": "int32", "default": 500 }, "reason": { "type": "string", "description": "the reason for the error", "default": "Something unexpected has happened" }, "note": { "type": "string", "description": "additional information or instructions", "default": "See application log for stack trace." } } }, "TestResponse": { "type": "object", "additionalProperties": false, "required": [ "success" ], "properties": { "success": { "type": "boolean" } } }, "SlotGetContractsResponse": { "type": "object", "additionalProperties": false, "required": [ "id", "slotId", "contractId", "contractName", "price", "canPayLater" ], "properties": { "id": { "type": "integer", "format": "int32" }, "slotId": { "type": "string", "format": "guid" }, "contractId": { "type": "integer", "format": "int32" }, "contractName": { "type": "string" }, "price": { "type": "number", "format": "decimal" }, "validationId": { "type": "integer", "format": "int32", "nullable": true }, "canPayLater": { "type": "boolean" }, "description": { "type": "string", "nullable": true } } }, "ErrorResponse": { "type": "object", "description": "the dto used to send an error response to the client", "additionalProperties": false, "required": [ "statusCode", "message", "errors" ], "properties": { "statusCode": { "type": "integer", "description": "the http status code sent to the client. default is 400.", "format": "int32", "default": 400 }, "message": { "type": "string", "description": "the message for the error response", "default": "One or more errors occurred!" }, "errors": { "type": "object", "description": "the collection of errors for the current context", "additionalProperties": { "type": "array", "items": { "type": "string" } } } } }, "SlotGetAllResponse": { "type": "object", "additionalProperties": false, "required": [ "id", "startDatetime", "booked", "total", "isAvailable" ], "properties": { "id": { "type": "string", "format": "guid" }, "facilityId": { "type": "integer", "format": "int32", "nullable": true }, "resourceId": { "type": "integer", "format": "int32", "nullable": true }, "resourceName": { "type": "string", "nullable": true }, "startDatetime": { "type": "string", "format": "date-time" }, "endDatetime": { "type": "string", "format": "date-time", "nullable": true }, "booked": { "type": "integer", "format": "int32" }, "total": { "type": "integer", "format": "int32" }, "isAvailable": { "type": "boolean" } } }, "AvailableSlotRequest": { "type": "object", "additionalProperties": false, "required": [ "id" ], "properties": { "id": { "type": "string", "format": "guid" }, "slotCount": { "type": "integer", "format": "int32", "nullable": true } } }, "PaginatedListOfOutlet": { "type": "object", "additionalProperties": false, "required": [ "items", "pageNumber", "totalPages", "totalCount", "hasPreviousPage", "hasNextPage" ], "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/Outlet" } }, "pageNumber": { "type": "integer", "format": "int32" }, "totalPages": { "type": "integer", "format": "int32" }, "totalCount": { "type": "integer", "format": "int32" }, "hasPreviousPage": { "type": "boolean" }, "hasNextPage": { "type": "boolean" } } }, "Outlet": { "type": "object", "additionalProperties": false, "required": [ "created", "id", "slug", "name", "businessId", "business", "vatNumber", "displayName", "outletTypeId", "outletType", "isActive", "facilities", "extras", "contractOutlets" ], "properties": { "created": { "type": "string", "format": "date-time" }, "createdBy": { "type": "string", "format": "guid", "nullable": true }, "lastModified": { "type": "string", "format": "date-time", "nullable": true }, "lastModifiedBy": { "type": "string", "format": "guid", "nullable": true }, "id": { "type": "integer", "format": "int32" }, "slug": { "type": "string" }, "name": { "type": "string" }, "businessId": { "type": "integer", "format": "int32" }, "business": { "$ref": "#/components/schemas/Business" }, "vatNumber": { "type": "string" }, "logo": { "type": "string", "nullable": true }, "address": { "type": "string", "nullable": true }, "company": { "type": "string", "nullable": true }, "registration": { "type": "string", "nullable": true }, "displayName": { "type": "string" }, "outletTypeId": { "type": "integer", "format": "int32" }, "outletType": { "$ref": "#/components/schemas/OutletType" }, "isActive": { "type": "boolean" }, "facilities": { "type": "array", "items": { "$ref": "#/components/schemas/Facility" } }, "extras": { "type": "array", "items": { "$ref": "#/components/schemas/Extra" } }, "contractOutlets": { "type": "array", "items": { "$ref": "#/components/schemas/ContractOutlet" } } } }, "Business": { "type": "object", "additionalProperties": false, "required": [ "created", "id", "name", "outlets", "contracts", "contractFields" ], "properties": { "created": { "type": "string", "format": "date-time" }, "createdBy": { "type": "string", "format": "guid", "nullable": true }, "lastModified": { "type": "string", "format": "date-time", "nullable": true }, "lastModifiedBy": { "type": "string", "format": "guid", "nullable": true }, "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "outlets": { "type": "array", "items": { "$ref": "#/components/schemas/Outlet" } }, "contracts": { "type": "array", "items": { "$ref": "#/components/schemas/Contract" } }, "contractFields": { "type": "array", "items": { "$ref": "#/components/schemas/ContractField" } } } }, "Contract": { "type": "object", "additionalProperties": false, "required": [ "created", "id", "name", "businessId", "business" ], "properties": { "created": { "type": "string", "format": "date-time" }, "createdBy": { "type": "string", "format": "guid", "nullable": true }, "lastModified": { "type": "string", "format": "date-time", "nullable": true }, "lastModifiedBy": { "type": "string", "format": "guid", "nullable": true }, "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "businessId": { "type": "integer", "format": "int32" }, "business": { "$ref": "#/components/schemas/Business" } } }, "ContractField": { "type": "object", "additionalProperties": false, "required": [ "created", "id", "name", "businessId", "business", "contractFieldConfigs" ], "properties": { "created": { "type": "string", "format": "date-time" }, "createdBy": { "type": "string", "format": "guid", "nullable": true }, "lastModified": { "type": "string", "format": "date-time", "nullable": true }, "lastModifiedBy": { "type": "string", "format": "guid", "nullable": true }, "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "fieldValidation": { "type": "string", "nullable": true }, "businessId": { "type": "integer", "format": "int32" }, "business": { "$ref": "#/components/schemas/Business" }, "contractFieldConfigs": { "type": "array", "items": { "$ref": "#/components/schemas/ContractFieldConfig" } } } }, "ContractFieldConfig": { "type": "object", "additionalProperties": false, "required": [ "created", "id", "contractId", "contract", "contractConfigId", "contractField", "isActive" ], "properties": { "created": { "type": "string", "format": "date-time" }, "createdBy": { "type": "string", "format": "guid", "nullable": true }, "lastModified": { "type": "string", "format": "date-time", "nullable": true }, "lastModifiedBy": { "type": "string", "format": "guid", "nullable": true }, "id": { "type": "integer", "format": "int32" }, "contractId": { "type": "integer", "format": "int32" }, "contract": { "$ref": "#/components/schemas/Contract" }, "contractConfigId": { "type": "integer", "format": "int32" }, "contractField": { "$ref": "#/components/schemas/ContractField" }, "isActive": { "type": "boolean" } } }, "OutletType": { "type": "object", "additionalProperties": false, "required": [ "created", "id", "name" ], "properties": { "created": { "type": "string", "format": "date-time" }, "createdBy": { "type": "string", "format": "guid", "nullable": true }, "lastModified": { "type": "string", "format": "date-time", "nullable": true }, "lastModifiedBy": { "type": "string", "format": "guid", "nullable": true }, "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" } } }, "Facility": { "type": "object", "additionalProperties": false, "required": [ "created", "id", "name", "outletId", "outlet", "facilityTypeId", "facilityType", "resources", "slots" ], "properties": { "created": { "type": "string", "format": "date-time" }, "createdBy": { "type": "string", "format": "guid", "nullable": true }, "lastModified": { "type": "string", "format": "date-time", "nullable": true }, "lastModifiedBy": { "type": "string", "format": "guid", "nullable": true }, "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "outletId": { "type": "integer", "format": "int32" }, "outlet": { "$ref": "#/components/schemas/Outlet" }, "isActive": { "type": "boolean", "nullable": true }, "facilityTypeId": { "type": "integer", "format": "int32" }, "facilityType": { "$ref": "#/components/schemas/FacilityType" }, "resources": { "type": "array", "items": { "$ref": "#/components/schemas/Resource" } }, "slots": { "type": "array", "items": { "$ref": "#/components/schemas/Slot" } } } }, "FacilityType": { "type": "object", "additionalProperties": false, "required": [ "id", "name" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" } } }, "Resource": { "type": "object", "additionalProperties": false, "required": [ "created", "id", "name", "facilityId", "facility", "isActive", "slots" ], "properties": { "created": { "type": "string", "format": "date-time" }, "createdBy": { "type": "string", "format": "guid", "nullable": true }, "lastModified": { "type": "string", "format": "date-time", "nullable": true }, "lastModifiedBy": { "type": "string", "format": "guid", "nullable": true }, "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "facilityId": { "type": "integer", "format": "int32" }, "facility": { "$ref": "#/components/schemas/Facility" }, "isActive": { "type": "boolean" }, "slots": { "type": "array", "items": { "$ref": "#/components/schemas/Slot" } } } }, "Slot": { "type": "object", "additionalProperties": false, "required": [ "created", "id", "startDatetime", "maxBookings", "slotContracts", "extraBookings" ], "properties": { "created": { "type": "string", "format": "date-time" }, "createdBy": { "type": "string", "format": "guid", "nullable": true }, "lastModified": { "type": "string", "format": "date-time", "nullable": true }, "lastModifiedBy": { "type": "string", "format": "guid", "nullable": true }, "id": { "type": "string", "format": "guid" }, "resourceId": { "type": "integer", "format": "int32", "nullable": true }, "resource": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/Resource" } ] }, "facilityId": { "type": "integer", "format": "int32", "nullable": true }, "facility": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/Facility" } ] }, "startDatetime": { "type": "string", "format": "date-time" }, "endDatetime": { "type": "string", "format": "date-time", "nullable": true }, "maxBookings": { "type": "integer", "format": "int32" }, "slotContracts": { "type": "array", "items": { "$ref": "#/components/schemas/SlotContract" } }, "extraBookings": { "type": "array", "items": { "$ref": "#/components/schemas/ExtraBooking" } } } }, "SlotContract": { "type": "object", "additionalProperties": false, "required": [ "created", "id", "slotId", "slot", "contractId", "contract", "price", "canPayLater" ], "properties": { "created": { "type": "string", "format": "date-time" }, "createdBy": { "type": "string", "format": "guid", "nullable": true }, "lastModified": { "type": "string", "format": "date-time", "nullable": true }, "lastModifiedBy": { "type": "string", "format": "guid", "nullable": true }, "id": { "type": "integer", "format": "int32" }, "slotId": { "type": "string", "format": "guid" }, "slot": { "$ref": "#/components/schemas/Slot" }, "contractId": { "type": "integer", "format": "int32" }, "contract": { "$ref": "#/components/schemas/Contract" }, "price": { "type": "number", "format": "decimal" }, "validationId": { "type": "integer", "format": "int32", "nullable": true }, "validation": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/Validation" } ] }, "canPayLater": { "type": "boolean" }, "description": { "type": "string", "nullable": true } } }, "Validation": { "type": "object", "additionalProperties": false, "required": [ "id", "name" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" } } }, "ExtraBooking": { "type": "object", "additionalProperties": false, "required": [ "extraId", "extra", "bookingId", "booking" ], "properties": { "extraId": { "type": "integer", "format": "int32" }, "extra": { "$ref": "#/components/schemas/Extra" }, "bookingId": { "type": "integer", "format": "int32" }, "booking": { "$ref": "#/components/schemas/Booking" } } }, "Extra": { "type": "object", "additionalProperties": false, "required": [ "id", "facilityId", "facility", "outletId", "name", "code", "price", "isAvailable", "isOnline" ], "properties": { "id": { "type": "integer", "format": "int32" }, "facilityId": { "type": "integer", "format": "int32" }, "facility": { "$ref": "#/components/schemas/Facility" }, "outletId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "code": { "type": "string" }, "price": { "type": "number", "format": "decimal" }, "isAvailable": { "type": "boolean" }, "isOnline": { "type": "boolean" } } }, "Booking": { "type": "object", "additionalProperties": false, "required": [ "created", "id", "bookingStatusId", "bookingStatus", "bookingStatusDate", "isPaid", "amountOutstanding", "amountPaid", "expiresAt", "slotContractBookings" ], "properties": { "created": { "type": "string", "format": "date-time" }, "createdBy": { "type": "string", "format": "guid", "nullable": true }, "lastModified": { "type": "string", "format": "date-time", "nullable": true }, "lastModifiedBy": { "type": "string", "format": "guid", "nullable": true }, "id": { "type": "integer", "format": "int32" }, "bookingStatusId": { "type": "integer", "format": "int32" }, "bookingStatus": { "$ref": "#/components/schemas/BookingStatus" }, "bookingStatusDate": { "type": "string", "format": "date-time" }, "userId": { "type": "string", "format": "guid", "nullable": true }, "user": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/User" } ] }, "isPaid": { "type": "boolean" }, "amountOutstanding": { "type": "number", "format": "decimal" }, "amountPaid": { "type": "number", "format": "decimal" }, "expiresAt": { "type": "string", "format": "date-time" }, "slotContractBookings": { "type": "array", "items": { "$ref": "#/components/schemas/SlotContractBooking" } } } }, "BookingStatus": { "type": "object", "additionalProperties": false, "required": [ "id", "name" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" } } }, "User": { "type": "object", "additionalProperties": false, "required": [ "id", "emailConfirmed", "phoneNumberConfirmed", "twoFactorEnabled", "lockoutEnabled", "accessFailedCount", "firstName", "lastName", "userContracts", "userRoles" ], "properties": { "id": { "type": "string", "format": "guid" }, "userName": { "type": "string", "nullable": true }, "normalizedUserName": { "type": "string", "nullable": true }, "email": { "type": "string", "nullable": true }, "normalizedEmail": { "type": "string", "nullable": true }, "emailConfirmed": { "type": "boolean" }, "passwordHash": { "type": "string", "nullable": true }, "securityStamp": { "type": "string", "nullable": true }, "concurrencyStamp": { "type": "string", "nullable": true }, "phoneNumber": { "type": "string", "nullable": true }, "phoneNumberConfirmed": { "type": "boolean" }, "twoFactorEnabled": { "type": "boolean" }, "lockoutEnd": { "type": "string", "format": "date-time", "nullable": true }, "lockoutEnabled": { "type": "boolean" }, "accessFailedCount": { "type": "integer", "format": "int32" }, "firstName": { "type": "string" }, "lastName": { "type": "string" }, "picture": { "type": "string", "nullable": true }, "userContracts": { "type": "array", "items": { "$ref": "#/components/schemas/UserContract" } }, "userRoles": { "type": "array", "items": { "$ref": "#/components/schemas/UserRole" } } } }, "UserContract": { "type": "object", "additionalProperties": false, "required": [ "created", "id", "contractId", "contract", "startDate", "price", "isActive", "userId", "user" ], "properties": { "created": { "type": "string", "format": "date-time" }, "createdBy": { "type": "string", "format": "guid", "nullable": true }, "lastModified": { "type": "string", "format": "date-time", "nullable": true }, "lastModifiedBy": { "type": "string", "format": "guid", "nullable": true }, "id": { "type": "integer", "format": "int32" }, "contractId": { "type": "integer", "format": "int32" }, "contract": { "$ref": "#/components/schemas/Contract" }, "startDate": { "type": "string", "format": "date-time" }, "endDate": { "type": "string", "format": "date-time", "nullable": true }, "price": { "type": "number", "format": "decimal" }, "isActive": { "type": "boolean" }, "userId": { "type": "string", "format": "guid" }, "user": { "$ref": "#/components/schemas/User" } } }, "UserRole": { "type": "object", "additionalProperties": false, "required": [ "userId", "roleId", "id", "role" ], "properties": { "userId": { "type": "string", "format": "guid" }, "roleId": { "type": "string", "format": "guid" }, "id": { "type": "integer", "format": "int32" }, "outletId": { "type": "integer", "format": "int32", "nullable": true }, "outlet": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/Outlet" } ] }, "role": { "$ref": "#/components/schemas/Role" } } }, "Role": { "type": "object", "additionalProperties": false, "required": [ "id" ], "properties": { "id": { "type": "string", "format": "guid" }, "name": { "type": "string", "nullable": true }, "normalizedName": { "type": "string", "nullable": true }, "concurrencyStamp": { "type": "string", "nullable": true } } }, "SlotContractBooking": { "type": "object", "additionalProperties": false, "required": [ "id", "slotContractId", "slotContract", "bookingId", "booking" ], "properties": { "id": { "type": "integer", "format": "int32" }, "slotContractId": { "type": "integer", "format": "int32" }, "slotContract": { "$ref": "#/components/schemas/SlotContract" }, "bookingId": { "type": "integer", "format": "int32" }, "booking": { "$ref": "#/components/schemas/Booking" }, "userId": { "type": "string", "format": "guid", "nullable": true }, "name": { "type": "string", "nullable": true }, "email": { "type": "string", "nullable": true }, "cellphone": { "type": "string", "nullable": true } } }, "ContractOutlet": { "type": "object", "additionalProperties": false, "required": [ "created", "id", "contractId", "contract", "outletId", "outlet", "isActive" ], "properties": { "created": { "type": "string", "format": "date-time" }, "createdBy": { "type": "string", "format": "guid", "nullable": true }, "lastModified": { "type": "string", "format": "date-time", "nullable": true }, "lastModifiedBy": { "type": "string", "format": "guid", "nullable": true }, "id": { "type": "integer", "format": "int32" }, "contractId": { "type": "integer", "format": "int32" }, "contract": { "$ref": "#/components/schemas/Contract" }, "outletId": { "type": "integer", "format": "int32" }, "outlet": { "$ref": "#/components/schemas/Outlet" }, "contractStart": { "type": "string", "format": "date-time", "nullable": true }, "contractEnd": { "type": "string", "format": "date-time", "nullable": true }, "isActive": { "type": "boolean" } } }, "OutletDTO": { "type": "object", "additionalProperties": false, "required": [ "id", "slug", "name", "businessId", "business", "vatNumber", "displayName", "outletTypeId", "outletType", "isActive", "facilities" ], "properties": { "id": { "type": "integer", "format": "int32" }, "slug": { "type": "string" }, "name": { "type": "string" }, "businessId": { "type": "integer", "format": "int32" }, "business": { "$ref": "#/components/schemas/BusinessDTO" }, "vatNumber": { "type": "string" }, "logo": { "type": "string", "nullable": true }, "address": { "type": "string", "nullable": true }, "company": { "type": "string", "nullable": true }, "registration": { "type": "string", "nullable": true }, "displayName": { "type": "string" }, "outletTypeId": { "type": "integer", "format": "int32" }, "outletType": { "$ref": "#/components/schemas/OutletTypeDTO" }, "isActive": { "type": "boolean" }, "facilities": { "type": "array", "items": { "$ref": "#/components/schemas/FacilityDTO" } } } }, "BusinessDTO": { "type": "object", "additionalProperties": false, "required": [ "id", "name" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" } } }, "OutletTypeDTO": { "type": "object", "additionalProperties": false, "required": [ "id", "name" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" } } }, "FacilityDTO": { "type": "object", "additionalProperties": false, "required": [ "id", "name", "outletId", "facilityTypeId", "facilityType" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "outletId": { "type": "integer", "format": "int32" }, "isActive": { "type": "boolean", "nullable": true }, "facilityTypeId": { "type": "integer", "format": "int32" }, "facilityType": { "$ref": "#/components/schemas/FacilityTypeDTO" } } }, "FacilityTypeDTO": { "type": "object", "additionalProperties": false, "required": [ "id", "name" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" } } }, "BookingUpdateStatusRequest": { "type": "object", "additionalProperties": false, "required": [ "bookingId", "status" ], "properties": { "bookingId": { "type": "integer", "format": "int32" }, "status": { "$ref": "#/components/schemas/BookingStatusEnum" } } }, "BookingStatusEnum": { "type": "integer", "description": "", "x-enumNames": [ "Pending", "Confirmed", "Cancelled", "Expired" ], "enum": [ 1, 2, 3, 4 ] }, "BookingDTO": { "type": "object", "additionalProperties": false, "required": [ "id", "bookingStatusId", "bookingStatus", "bookingStatusDate", "isPaid", "amountOutstanding", "amountPaid", "expiresAt", "slotContractBookings" ], "properties": { "id": { "type": "integer", "format": "int32" }, "bookingStatusId": { "type": "integer", "format": "int32" }, "bookingStatus": { "$ref": "#/components/schemas/BookingStatusDTO" }, "bookingStatusDate": { "type": "string", "format": "date-time" }, "userId": { "type": "string", "format": "guid", "nullable": true }, "user": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/UserDTO" } ] }, "isPaid": { "type": "boolean" }, "amountOutstanding": { "type": "number", "format": "decimal" }, "amountPaid": { "type": "number", "format": "decimal" }, "expiresAt": { "type": "string", "format": "date-time" }, "slotContractBookings": { "type": "array", "items": { "$ref": "#/components/schemas/SlotContractBookingDTO" } } } }, "BookingStatusDTO": { "type": "object", "additionalProperties": false, "required": [ "id", "name" ], "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" } } }, "UserDTO": { "type": "object", "additionalProperties": false, "required": [ "firstName", "lastName" ], "properties": { "firstName": { "type": "string" }, "lastName": { "type": "string" }, "picture": { "type": "string", "nullable": true } } }, "SlotContractBookingDTO": { "type": "object", "additionalProperties": false, "required": [ "id", "slotContractId", "slotContract", "bookingId" ], "properties": { "id": { "type": "integer", "format": "int32" }, "slotContractId": { "type": "integer", "format": "int32" }, "slotContract": { "$ref": "#/components/schemas/SlotContractDTO" }, "bookingId": { "type": "integer", "format": "int32" }, "userId": { "type": "string", "format": "guid", "nullable": true }, "name": { "type": "string", "nullable": true }, "email": { "type": "string", "nullable": true }, "cellphone": { "type": "string", "nullable": true } } }, "SlotContractDTO": { "type": "object", "additionalProperties": false, "required": [ "id", "slotId", "slot", "contractId", "price", "canPayLater" ], "properties": { "id": { "type": "integer", "format": "int32" }, "slotId": { "type": "string", "format": "guid" }, "slot": { "$ref": "#/components/schemas/SlotDTO" }, "contractId": { "type": "integer", "format": "int32" }, "price": { "type": "number", "format": "decimal" }, "validationId": { "type": "integer", "format": "int32", "nullable": true }, "canPayLater": { "type": "boolean" }, "description": { "type": "string", "nullable": true } } }, "SlotDTO": { "type": "object", "additionalProperties": false, "required": [ "id", "startDatetime", "maxBookings" ], "properties": { "id": { "type": "string", "format": "guid" }, "resourceId": { "type": "integer", "format": "int32", "nullable": true }, "facilityId": { "type": "integer", "format": "int32", "nullable": true }, "startDatetime": { "type": "string", "format": "date-time" }, "endDatetime": { "type": "string", "format": "date-time", "nullable": true }, "maxBookings": { "type": "integer", "format": "int32" } } }, "BookingCreateResponse": { "type": "object", "additionalProperties": false, "required": [ "id" ], "properties": { "id": { "type": "integer", "format": "int32" } } }, "BookingCreateRequest": { "type": "object", "additionalProperties": false, "required": [ "bookings" ], "properties": { "bookings": { "type": "array", "items": { "$ref": "#/components/schemas/BookingRequest" } } } }, "BookingRequest": { "type": "object", "additionalProperties": false, "required": [ "slotId", "slotContractId" ], "properties": { "slotId": { "type": "string", "format": "guid" }, "slotContractId": { "type": "integer", "format": "int32" }, "name": { "type": "string", "nullable": true }, "email": { "type": "string", "nullable": true }, "cellphone": { "type": "string", "nullable": true } } }, "UserRoleRequest": { "type": "object", "additionalProperties": false, "required": [ "name" ], "properties": { "name": { "type": "string", "minLength": 1, "nullable": false } } }, "UserRegisterRequest": { "type": "object", "additionalProperties": false, "required": [ "firstName", "lastName", "email", "password" ], "properties": { "firstName": { "type": "string" }, "lastName": { "type": "string" }, "email": { "type": "string" }, "password": { "type": "string" } } }, "UserModel": { "type": "object", "additionalProperties": false, "required": [ "id", "email", "emailConfirmed", "firstName", "lastName", "name" ], "properties": { "id": { "type": "string" }, "email": { "type": "string" }, "emailConfirmed": { "type": "boolean" }, "firstName": { "type": "string" }, "lastName": { "type": "string" }, "name": { "type": "string" }, "picture": { "type": "string", "nullable": true } } }, "RefreshRevokeRequest": { "type": "object", "additionalProperties": false, "required": [ "id" ], "properties": { "id": { "type": "string", "format": "guid" } } }, "RefreshListResponse": { "type": "object", "additionalProperties": false, "required": [ "id", "expiresAtUtc", "browser", "browserVersion", "device", "platform", "processor", "isCurrent" ], "properties": { "id": { "type": "string", "format": "guid" }, "expiresAtUtc": { "type": "string", "format": "date-time" }, "browser": { "type": "string" }, "browserVersion": { "type": "string" }, "device": { "type": "string" }, "platform": { "type": "string" }, "processor": { "type": "string" }, "isCurrent": { "type": "boolean" } } }, "PasskeyRequest": { "type": "object", "additionalProperties": false, "required": [ "name" ], "properties": { "name": { "type": "string" } } }, "LoginRequest": { "type": "object", "additionalProperties": false, "required": [ "email", "password" ], "properties": { "email": { "type": "string" }, "password": { "type": "string" }, "twoFactorCode": { "type": "string", "nullable": true }, "twoFactorRecoveryCode": { "type": "string", "nullable": true } } } } } }