-
Notifications
You must be signed in to change notification settings - Fork 2
/
clientGenerationSettings typescript.nswag
52 lines (52 loc) · 111 KB
/
clientGenerationSettings typescript.nswag
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
"runtime": "Default",
"swaggerGenerator": {
"fromSwagger": {
"json": "{\r\n \"x-generator\": \"NSwag v11.17.0.0 (NJsonSchema v9.10.42.0 (Newtonsoft.Json v10.0.0.0))\",\r\n \"swagger\": \"2.0\",\r\n \"info\": {\r\n \"title\": \"My Title\",\r\n \"version\": \"1.0.0\"\r\n },\r\n \"host\": \"localhost:57676\",\r\n \"schemes\": [\r\n \"http\"\r\n ],\r\n \"consumes\": [\r\n \"application/json\"\r\n ],\r\n \"produces\": [\r\n \"application/json\"\r\n ],\r\n \"paths\": {\r\n \"/api/Account/token\": {\r\n \"post\": {\r\n \"tags\": [\r\n \"Account\"\r\n ],\r\n \"operationId\": \"Account_Exchange\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"object\",\r\n \"name\": \"loginRequest\",\r\n \"in\": \"formData\",\r\n \"x-schema\": {\r\n \"$ref\": \"#/definitions/LoginRequest\"\r\n },\r\n \"x-nullable\": true\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/LoginResponseModel\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/Account/UserNameAvailable\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"Account\"\r\n ],\r\n \"summary\": \"Checks if a username is available\",\r\n \"operationId\": \"Account_GetUserNameAvailable\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"string\",\r\n \"name\": \"userName\",\r\n \"in\": \"query\",\r\n \"required\": true,\r\n \"description\": \"Username to check\",\r\n \"x-nullable\": true\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"description\": \"True if username is available\"\r\n }\r\n }\r\n }\r\n },\r\n \"/api/Account/UserInfo\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"Account\"\r\n ],\r\n \"summary\": \"Get user information\",\r\n \"operationId\": \"Account_GetUserInfo\",\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/UserInfo\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/Account/ExternalUserInfo\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"Account\"\r\n ],\r\n \"summary\": \"Get user information for an external user (i.e., just logged in using an external provider)\",\r\n \"operationId\": \"Account_GetExternalUserInfo\",\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/UserInfo\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/Account/Logout\": {\r\n \"post\": {\r\n \"tags\": [\r\n \"Account\"\r\n ],\r\n \"operationId\": \"Account_Logout\",\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"type\": \"file\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/Account/ManageInfo\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"Account\"\r\n ],\r\n \"operationId\": \"Account_GetManageInfo\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"string\",\r\n \"name\": \"returnUrl\",\r\n \"in\": \"query\",\r\n \"required\": true,\r\n \"x-nullable\": true\r\n },\r\n {\r\n \"type\": \"boolean\",\r\n \"name\": \"generateState\",\r\n \"in\": \"query\",\r\n \"default\": false,\r\n \"x-nullable\": false\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/ManageInfoViewModel\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/Account/ChangePassword\": {\r\n \"post\": {\r\n \"tags\": [\r\n \"Account\"\r\n ],\r\n \"operationId\": \"Account_ChangePassword\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"model\",\r\n \"in\": \"body\",\r\n \"required\": true,\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/ChangePasswordBindingModel\"\r\n },\r\n \"x-nullable\": true\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"type\": \"file\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/Account/SetPassword\": {\r\n \"post\": {\r\n \"tags\": [\r\n \"Account\"\r\n ],\r\n \"operationId\": \"Account_SetPassword\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"model\",\r\n \"in\": \"body\",\r\n \"required\": true,\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/SetPasswordBindingModel\"\r\n },\r\n \"x-nullable\": true\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"type\": \"file\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/Account/Delete\": {\r\n \"post\": {\r\n \"tags\": [\r\n \"Account\"\r\n ],\r\n \"operationId\": \"Account_DeleteAccount\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"model\",\r\n \"in\": \"body\",\r\n \"required\": true,\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/DeleteAccountBindingModel\"\r\n },\r\n \"x-nullable\": true\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"description\": \"\"\r\n },\r\n \"400\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/ErrorResponse\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/Account/Language\": {\r\n \"patch\": {\r\n \"tags\": [\r\n \"Account\"\r\n ],\r\n \"operationId\": \"Account_SetLanguage\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"string\",\r\n \"name\": \"language\",\r\n \"in\": \"query\",\r\n \"required\": true,\r\n \"maxLength\": 2,\r\n \"minLength\": 0,\r\n \"x-nullable\": true\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"type\": \"file\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/Account/RemoveLogin\": {\r\n \"post\": {\r\n \"tags\": [\r\n \"Account\"\r\n ],\r\n \"operationId\": \"Account_RemoveLogin\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"model\",\r\n \"in\": \"body\",\r\n \"required\": true,\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/RemoveLoginBindingModel\"\r\n },\r\n \"x-nullable\": true\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"type\": \"file\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/Account/ExternalLogins\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"Account\"\r\n ],\r\n \"operationId\": \"Account_GetExternalLogins\",\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/ExternalLoginViewModel\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/Account/Register\": {\r\n \"post\": {\r\n \"tags\": [\r\n \"Account\"\r\n ],\r\n \"operationId\": \"Account_Register\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"model\",\r\n \"in\": \"body\",\r\n \"required\": true,\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/RegisterBindingModel\"\r\n },\r\n \"x-nullable\": true\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"description\": \"\"\r\n },\r\n \"400\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/ErrorResponse\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/Account/ResendConfirmation\": {\r\n \"post\": {\r\n \"tags\": [\r\n \"Account\"\r\n ],\r\n \"summary\": \"Resend the email confirmation account to the given user account\",\r\n \"operationId\": \"Account_ResendConfirmationCode\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"model\",\r\n \"in\": \"body\",\r\n \"required\": true,\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/ResendConfirmationModel\"\r\n },\r\n \"x-nullable\": true\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"type\": \"file\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/Account/ConfirmEmail\": {\r\n \"post\": {\r\n \"tags\": [\r\n \"Account\"\r\n ],\r\n \"summary\": \"Confirm user account using code provided in mail\",\r\n \"operationId\": \"Account_ConfirmEmail\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"model\",\r\n \"in\": \"body\",\r\n \"required\": true,\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/ConfirmationModel\"\r\n },\r\n \"description\": \"Model containing id and code\",\r\n \"x-nullable\": true\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"Success if successfully activated\",\r\n \"schema\": {\r\n \"type\": \"file\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/Account/ForgotPassword\": {\r\n \"post\": {\r\n \"tags\": [\r\n \"Account\"\r\n ],\r\n \"summary\": \"Request password reset link\",\r\n \"operationId\": \"Account_ForgotPassword\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"model\",\r\n \"in\": \"body\",\r\n \"required\": true,\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/ForgotPasswordViewModel\"\r\n },\r\n \"x-nullable\": true\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"type\": \"file\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/Account/ResetPassword\": {\r\n \"post\": {\r\n \"tags\": [\r\n \"Account\"\r\n ],\r\n \"summary\": \"Reset password confirmation\",\r\n \"operationId\": \"Account_ResetPassword\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"model\",\r\n \"in\": \"body\",\r\n \"required\": true,\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/ResetPasswordViewModel\"\r\n },\r\n \"x-nullable\": true\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"type\": \"file\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/Account/RegisterExternal\": {\r\n \"post\": {\r\n \"tags\": [\r\n \"Account\"\r\n ],\r\n \"summary\": \"Create user accout for an external login\",\r\n \"operationId\": \"Account_RegisterExternal\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"model\",\r\n \"in\": \"body\",\r\n \"required\": true,\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/RegisterExternalBindingModel\"\r\n },\r\n \"x-nullable\": true\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"type\": \"file\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/alliances\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"Alliance\"\r\n ],\r\n \"summary\": \"Get a list of all alliances\",\r\n \"operationId\": \"Alliance_GetAll\",\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"Alliance summaries\",\r\n \"schema\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/AllianceSummary\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"post\": {\r\n \"tags\": [\r\n \"Alliance\"\r\n ],\r\n \"summary\": \"Create a new alliance\",\r\n \"operationId\": \"Alliance_Create\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"creationOptions\",\r\n \"in\": \"body\",\r\n \"required\": true,\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/AllianceCreationOptions\"\r\n },\r\n \"description\": \"Creation options\",\r\n \"x-nullable\": true\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"Summary of new alliance\",\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/AllianceSummary\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/alliances/{allianceId}\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"Alliance\"\r\n ],\r\n \"summary\": \"Get detailed information about a single alliance\",\r\n \"operationId\": \"Alliance_Get\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"string\",\r\n \"name\": \"allianceId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"Id of the requested alliance\",\r\n \"format\": \"guid\",\r\n \"x-nullable\": false\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"Information about the requested alliance\",\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/Alliance\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/alliances/{allianceId}/members/{userId}\": {\r\n \"delete\": {\r\n \"tags\": [\r\n \"Alliance\"\r\n ],\r\n \"summary\": \"Remove member from alliance\",\r\n \"operationId\": \"Alliance_RemoveMember\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"string\",\r\n \"name\": \"allianceId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"Id of alliance\",\r\n \"format\": \"guid\",\r\n \"x-nullable\": false\r\n },\r\n {\r\n \"type\": \"string\",\r\n \"name\": \"userId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"Id of user to remove\",\r\n \"x-nullable\": false\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"description\": \"Summary of new alliance\"\r\n }\r\n }\r\n },\r\n \"patch\": {\r\n \"tags\": [\r\n \"Alliance\"\r\n ],\r\n \"summary\": \"Change member's admin status\",\r\n \"operationId\": \"Alliance_ChangeAdmin\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"string\",\r\n \"name\": \"allianceId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"Id of alliance\",\r\n \"format\": \"guid\",\r\n \"x-nullable\": false\r\n },\r\n {\r\n \"type\": \"string\",\r\n \"name\": \"userId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"Id of user to make admin\",\r\n \"x-nullable\": false\r\n },\r\n {\r\n \"name\": \"isAdmin\",\r\n \"in\": \"body\",\r\n \"required\": true,\r\n \"schema\": {\r\n \"type\": \"boolean\"\r\n },\r\n \"x-nullable\": false\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"description\": \"Summary of new alliance\"\r\n }\r\n }\r\n }\r\n },\r\n \"/api/alliances/{allianceId}/requests\": {\r\n \"post\": {\r\n \"tags\": [\r\n \"Alliance\"\r\n ],\r\n \"summary\": \"Request to join an alliance\",\r\n \"operationId\": \"Alliance_RequestJoin\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"string\",\r\n \"name\": \"allianceId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"Id of the requested alliance\",\r\n \"format\": \"guid\",\r\n \"x-nullable\": false\r\n },\r\n {\r\n \"name\": \"reason\",\r\n \"in\": \"body\",\r\n \"required\": true,\r\n \"schema\": {\r\n \"type\": \"string\"\r\n },\r\n \"description\": \"Reason why user wants to join the alliance\",\r\n \"x-nullable\": true\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"Id of join request if created\",\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/AllianceJoinRequest\"\r\n }\r\n }\r\n }\r\n },\r\n \"get\": {\r\n \"tags\": [\r\n \"Alliance\"\r\n ],\r\n \"summary\": \"Lists requests to join an alliance\",\r\n \"operationId\": \"Alliance_GetRequests\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"string\",\r\n \"name\": \"allianceId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"Id of the alliance\",\r\n \"format\": \"guid\",\r\n \"x-nullable\": false\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"List of active requests\",\r\n \"schema\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/AllianceJoinRequest\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/alliances/{allianceId}/requests/{requestId}\": {\r\n \"patch\": {\r\n \"tags\": [\r\n \"Alliance\"\r\n ],\r\n \"summary\": \"Updates a request to join an alliance. Requests can only be updated when they are in a pending state\",\r\n \"operationId\": \"Alliance_ApproveRequest\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"string\",\r\n \"name\": \"allianceId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"Id of the requested alliance\",\r\n \"format\": \"guid\",\r\n \"x-nullable\": false\r\n },\r\n {\r\n \"type\": \"string\",\r\n \"name\": \"requestId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"Id of the request to change\",\r\n \"format\": \"guid\",\r\n \"x-nullable\": false\r\n },\r\n {\r\n \"name\": \"state\",\r\n \"in\": \"body\",\r\n \"required\": true,\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/AllianceJoinRequestState\"\r\n },\r\n \"description\": \"New request state\",\r\n \"x-nullable\": false\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/AllianceJoinRequest\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/games/open\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"Game\"\r\n ],\r\n \"summary\": \"Get a list of open games, excluding games by the current player\",\r\n \"operationId\": \"Game_GetAll\",\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"List of games\",\r\n \"schema\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/GameSummary\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/games/my\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"Game\"\r\n ],\r\n \"summary\": \"Get a list of the games for the current player\",\r\n \"operationId\": \"Game_GetMy\",\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"List of games for the current user\",\r\n \"schema\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/GameSummary\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/games/myturn\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"Game\"\r\n ],\r\n \"summary\": \"Get list of games where it's the current player's team\",\r\n \"operationId\": \"Game_GetMyTurn\",\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"List of games where it's the current user's team\",\r\n \"schema\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/GameSummary\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/games\": {\r\n \"post\": {\r\n \"tags\": [\r\n \"Game\"\r\n ],\r\n \"summary\": \"Create a new game\",\r\n \"operationId\": \"Game_Post\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"creationOptions\",\r\n \"in\": \"body\",\r\n \"required\": true,\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/GameCreationOptions\"\r\n },\r\n \"description\": \"Creation options\",\r\n \"x-nullable\": true\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"Summary of newly created game\",\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/GameSummary\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/games/{gameId}\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"Game\"\r\n ],\r\n \"summary\": \"Get detailed information about a single game\",\r\n \"operationId\": \"Game_Get\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"integer\",\r\n \"name\": \"gameId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"Id of the requested game\",\r\n \"format\": \"int64\",\r\n \"x-nullable\": false\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"Information about the requested game\",\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/Game\"\r\n }\r\n }\r\n }\r\n },\r\n \"delete\": {\r\n \"tags\": [\r\n \"Game\"\r\n ],\r\n \"summary\": \"Cancel/delete the requested game, if possible. \",\r\n \"description\": \"This is only posssible, if the requested game is in a state that\\ncan be deleted\",\r\n \"operationId\": \"Game_Delete\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"integer\",\r\n \"name\": \"gameId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"Id of the game to delete\",\r\n \"format\": \"int64\",\r\n \"x-nullable\": false\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"Status\",\r\n \"schema\": {\r\n \"type\": \"file\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/games/{gameId}/messages\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"Game\"\r\n ],\r\n \"summary\": \"Get messages for a single game\",\r\n \"operationId\": \"Game_GetMessages\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"integer\",\r\n \"name\": \"gameId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"Id of the requested game\",\r\n \"format\": \"int64\",\r\n \"x-nullable\": false\r\n },\r\n {\r\n \"type\": \"boolean\",\r\n \"name\": \"isPublic\",\r\n \"in\": \"query\",\r\n \"description\": \"Value indicating whether to return only public messages, default is true\",\r\n \"default\": true,\r\n \"x-nullable\": false\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"Messages posted in the requested game\",\r\n \"schema\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/GameChatMessage\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/games/{gameId}/join\": {\r\n \"post\": {\r\n \"tags\": [\r\n \"Game\"\r\n ],\r\n \"summary\": \"Join the given game\",\r\n \"operationId\": \"Game_PostJoin\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"integer\",\r\n \"name\": \"gameId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"Id of game to join\",\r\n \"format\": \"int64\",\r\n \"x-nullable\": false\r\n },\r\n {\r\n \"type\": \"string\",\r\n \"name\": \"password\",\r\n \"in\": \"query\",\r\n \"required\": true,\r\n \"description\": \"Optional password\",\r\n \"x-nullable\": true\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"type\": \"file\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/games/{gameId}/leave\": {\r\n \"post\": {\r\n \"tags\": [\r\n \"Game\"\r\n ],\r\n \"summary\": \"Leave the given game, only possible if game hasn't started yet, and current player\\nis not the creator.\",\r\n \"operationId\": \"Game_PostLeave\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"integer\",\r\n \"name\": \"gameId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"Id of game to leave\",\r\n \"format\": \"int64\",\r\n \"x-nullable\": false\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"type\": \"file\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/games/{gameId}/surrender\": {\r\n \"post\": {\r\n \"tags\": [\r\n \"Game\"\r\n ],\r\n \"summary\": \"Surrender in the given game, only possible if current player\\nand game are still active.\",\r\n \"operationId\": \"Game_PostSurrender\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"integer\",\r\n \"name\": \"gameId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"Id of game to surrender in\",\r\n \"format\": \"int64\",\r\n \"x-nullable\": false\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/GameSummary\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/games/{gameId}/hide\": {\r\n \"patch\": {\r\n \"tags\": [\r\n \"Game\"\r\n ],\r\n \"summary\": \"Hides the given game for the current player\",\r\n \"operationId\": \"Game_PatchHide\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"integer\",\r\n \"name\": \"gameId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"Id of game to hide\",\r\n \"format\": \"int64\",\r\n \"x-nullable\": false\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"type\": \"file\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/games/hide\": {\r\n \"patch\": {\r\n \"tags\": [\r\n \"Game\"\r\n ],\r\n \"summary\": \"Hide all games which can be hidden for the current player\",\r\n \"operationId\": \"Game_PatchHideAll\",\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"type\": \"file\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/games/{gameId}/history/{turnId}\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"History\"\r\n ],\r\n \"summary\": \"Gets the specified turn including the actions and current state of the map\",\r\n \"operationId\": \"History_GetTurn\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"integer\",\r\n \"name\": \"gameId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"format\": \"int64\",\r\n \"x-nullable\": false\r\n },\r\n {\r\n \"type\": \"integer\",\r\n \"name\": \"turnId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"format\": \"int64\",\r\n \"x-nullable\": false\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/HistoryTurn\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/ladder\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"Ladder\"\r\n ],\r\n \"summary\": \"Returns active ladders\",\r\n \"operationId\": \"Ladder_GetAll\",\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"List of ladders\",\r\n \"schema\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/LadderSummary\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/ladder/{ladderId}\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"Ladder\"\r\n ],\r\n \"summary\": \"Gets ladder identified by given id\",\r\n \"operationId\": \"Ladder_Get\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"string\",\r\n \"name\": \"ladderId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"Id of ladder\",\r\n \"format\": \"guid\",\r\n \"x-nullable\": false\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/Ladder\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/ladder/{ladderId}/queue\": {\r\n \"post\": {\r\n \"tags\": [\r\n \"Ladder\"\r\n ],\r\n \"summary\": \"Queue up for a new game in the given ladder\",\r\n \"operationId\": \"Ladder_PostJoin\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"string\",\r\n \"name\": \"ladderId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"Ladder id\",\r\n \"format\": \"guid\",\r\n \"x-nullable\": false\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"type\": \"file\"\r\n }\r\n }\r\n }\r\n },\r\n \"delete\": {\r\n \"tags\": [\r\n \"Ladder\"\r\n ],\r\n \"summary\": \"Leave the queue for a ladder\",\r\n \"operationId\": \"Ladder_DeleteJoin\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"string\",\r\n \"name\": \"ladderId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"Ladder Id\",\r\n \"format\": \"guid\",\r\n \"x-nullable\": false\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"type\": \"file\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/map\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"Map\"\r\n ],\r\n \"operationId\": \"Map_GetAllSummary\",\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/MapTemplateDescriptor\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/map/{name}\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"Map\"\r\n ],\r\n \"summary\": \"Get map template identified by name\",\r\n \"operationId\": \"Map_GetMapTemplate\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"string\",\r\n \"name\": \"name\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"x-nullable\": false\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/MapTemplate\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/messages/folder/{messageFolder}\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"Message\"\r\n ],\r\n \"operationId\": \"Message_GetAll\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"string\",\r\n \"name\": \"messageFolder\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"x-schema\": {\r\n \"$ref\": \"#/definitions/MessageFolder\"\r\n },\r\n \"x-nullable\": false,\r\n \"enum\": [\r\n \"None\",\r\n \"Inbox\",\r\n \"Sent\"\r\n ]\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/Message\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/messages/{messageId}\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"Message\"\r\n ],\r\n \"operationId\": \"Message_Get\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"string\",\r\n \"name\": \"messageId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"format\": \"guid\",\r\n \"x-nullable\": false\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/Message\"\r\n }\r\n }\r\n }\r\n },\r\n \"patch\": {\r\n \"tags\": [\r\n \"Message\"\r\n ],\r\n \"operationId\": \"Message_PatchMarkRead\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"string\",\r\n \"name\": \"messageId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"format\": \"guid\",\r\n \"x-nullable\": false\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"type\": \"file\"\r\n }\r\n }\r\n }\r\n },\r\n \"delete\": {\r\n \"tags\": [\r\n \"Message\"\r\n ],\r\n \"operationId\": \"Message_Delete\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"string\",\r\n \"name\": \"messageId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"format\": \"guid\",\r\n \"x-nullable\": false\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"type\": \"file\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/messages/folders\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"Message\"\r\n ],\r\n \"operationId\": \"Message_GetFolderInformation\",\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/FolderInformation\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/messages\": {\r\n \"post\": {\r\n \"tags\": [\r\n \"Message\"\r\n ],\r\n \"operationId\": \"Message_PostSend\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"message\",\r\n \"in\": \"body\",\r\n \"required\": true,\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/SendMessage\"\r\n },\r\n \"x-nullable\": true\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"type\": \"file\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/news\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"News\"\r\n ],\r\n \"summary\": \"Returns the last 10 news items for all languages\",\r\n \"operationId\": \"News_GetAll\",\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"List of news items\",\r\n \"schema\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/NewsItem\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/notifications/summary\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"Notification\"\r\n ],\r\n \"summary\": \"Get notification summary for current user\",\r\n \"operationId\": \"Notification_GetSummary\",\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/NotificationSummary\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/games/{gameId}/play/place\": {\r\n \"post\": {\r\n \"tags\": [\r\n \"Play\"\r\n ],\r\n \"summary\": \"Place units to countries.\",\r\n \"operationId\": \"Play_PostPlace\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"integer\",\r\n \"name\": \"gameId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"Id of the game\",\r\n \"format\": \"int64\",\r\n \"x-nullable\": false\r\n },\r\n {\r\n \"name\": \"placeUnitsOptions\",\r\n \"in\": \"body\",\r\n \"required\": true,\r\n \"schema\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/PlaceUnitsOptions\"\r\n }\r\n },\r\n \"description\": \"List of country/unit count pairs\",\r\n \"x-nullable\": true\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"GameActionResult of action\",\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/GameActionResult\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/games/{gameId}/play/exchange\": {\r\n \"post\": {\r\n \"tags\": [\r\n \"Play\"\r\n ],\r\n \"summary\": \"Exchange cards for the current player. Which cards to exchange is automatically chosen to gain the most bonus for the player.\",\r\n \"operationId\": \"Play_PostExchange\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"integer\",\r\n \"name\": \"gameId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"Id of the game\",\r\n \"format\": \"int64\",\r\n \"x-nullable\": false\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"GameActionResult of action\",\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/GameActionResult\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/games/{gameId}/play/attack\": {\r\n \"post\": {\r\n \"tags\": [\r\n \"Play\"\r\n ],\r\n \"summary\": \"Attack from one to another country.\",\r\n \"operationId\": \"Play_PostAttack\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"integer\",\r\n \"name\": \"gameId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"Id of the game\",\r\n \"format\": \"int64\",\r\n \"x-nullable\": false\r\n },\r\n {\r\n \"name\": \"options\",\r\n \"in\": \"body\",\r\n \"required\": true,\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/AttackOptions\"\r\n },\r\n \"description\": \"Options for the command\",\r\n \"x-nullable\": true\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"GameActionResult of action\",\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/GameActionResult\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/games/{gameId}/play/endattack\": {\r\n \"post\": {\r\n \"tags\": [\r\n \"Play\"\r\n ],\r\n \"summary\": \"Switch to moving.\",\r\n \"operationId\": \"Play_PostEndAttack\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"integer\",\r\n \"name\": \"gameId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"Id of the game\",\r\n \"format\": \"int64\",\r\n \"x-nullable\": false\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"GameActionResult of action\",\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/GameActionResult\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/games/{gameId}/play/move\": {\r\n \"post\": {\r\n \"tags\": [\r\n \"Play\"\r\n ],\r\n \"summary\": \"Move units between countries. Only allowed after placing. Cancels any attacks that the player had left before. Attacking is not\\npossible anymore after moving.\",\r\n \"operationId\": \"Play_PostMove\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"integer\",\r\n \"name\": \"gameId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"Id of the game\",\r\n \"format\": \"int64\",\r\n \"x-nullable\": false\r\n },\r\n {\r\n \"name\": \"options\",\r\n \"in\": \"body\",\r\n \"required\": true,\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/MoveOptions\"\r\n },\r\n \"description\": \"Options for the command\",\r\n \"x-nullable\": true\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"GameActionResult of action\",\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/GameActionResult\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/games/{gameId}/play/endturn\": {\r\n \"post\": {\r\n \"tags\": [\r\n \"Play\"\r\n ],\r\n \"summary\": \"End the current turn\",\r\n \"operationId\": \"Play_PostEndTurn\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"integer\",\r\n \"name\": \"gameId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"Id of the game\",\r\n \"format\": \"int64\",\r\n \"x-nullable\": false\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"GameActionResult of action\",\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/Game\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/tournaments\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"Tournament\"\r\n ],\r\n \"summary\": \"Returns tournaments\",\r\n \"operationId\": \"Tournament_GetAll\",\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"List of tournaments\",\r\n \"schema\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/TournamentSummary\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/tournaments/{tournamentId}\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"Tournament\"\r\n ],\r\n \"summary\": \"Get tournament identified by Id\",\r\n \"operationId\": \"Tournament_GetById\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"string\",\r\n \"name\": \"tournamentId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"Id of tournament\",\r\n \"format\": \"guid\",\r\n \"x-nullable\": false\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/Tournament\"\r\n }\r\n }\r\n }\r\n },\r\n \"post\": {\r\n \"tags\": [\r\n \"Tournament\"\r\n ],\r\n \"summary\": \"Join tournament\",\r\n \"operationId\": \"Tournament_PostJoin\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"string\",\r\n \"name\": \"tournamentId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"Id of tournament\",\r\n \"format\": \"guid\",\r\n \"x-nullable\": false\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/TournamentTeam\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/tournaments/{tournamentId}/teams\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"Tournament\"\r\n ],\r\n \"summary\": \"Get teams for tournament\",\r\n \"operationId\": \"Tournament_GetTeams\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"string\",\r\n \"name\": \"tournamentId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"Id of tournament\",\r\n \"format\": \"guid\",\r\n \"x-nullable\": false\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/TournamentTeam\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"post\": {\r\n \"tags\": [\r\n \"Tournament\"\r\n ],\r\n \"summary\": \"Create new team for a tournament\",\r\n \"operationId\": \"Tournament_PostCreateTeam\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"string\",\r\n \"name\": \"tournamentId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"Id of tournament\",\r\n \"format\": \"guid\",\r\n \"x-nullable\": false\r\n },\r\n {\r\n \"type\": \"string\",\r\n \"name\": \"name\",\r\n \"in\": \"query\",\r\n \"required\": true,\r\n \"description\": \"Name of team\",\r\n \"x-nullable\": true\r\n },\r\n {\r\n \"type\": \"string\",\r\n \"name\": \"password\",\r\n \"in\": \"query\",\r\n \"description\": \"Optional password for team\",\r\n \"x-nullable\": true\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"Summary of newly created team\",\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/TournamentTeam\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/tournaments/pairings/{pairingId}\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"Tournament\"\r\n ],\r\n \"summary\": \"Get teams for tournament pairing\",\r\n \"operationId\": \"Tournament_GetGamesForPairing\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"string\",\r\n \"name\": \"pairingId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"Id of tournament pairing\",\r\n \"format\": \"guid\",\r\n \"x-nullable\": false\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/GameSummary\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/tournaments/{tournamentId}/teams/{teamId}\": {\r\n \"post\": {\r\n \"tags\": [\r\n \"Tournament\"\r\n ],\r\n \"summary\": \"Join existing team\",\r\n \"operationId\": \"Tournament_PostJoinTeam\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"string\",\r\n \"name\": \"tournamentId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"Id of tournament\",\r\n \"format\": \"guid\",\r\n \"x-nullable\": false\r\n },\r\n {\r\n \"type\": \"string\",\r\n \"name\": \"teamId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"Id of team\",\r\n \"format\": \"guid\",\r\n \"x-nullable\": false\r\n },\r\n {\r\n \"type\": \"string\",\r\n \"name\": \"password\",\r\n \"in\": \"query\",\r\n \"description\": \"Optional password for team to join\",\r\n \"x-nullable\": true\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/TournamentTeam\"\r\n }\r\n }\r\n }\r\n },\r\n \"delete\": {\r\n \"tags\": [\r\n \"Tournament\"\r\n ],\r\n \"summary\": \"Delete a team. Only allowed if user created it\",\r\n \"operationId\": \"Tournament_DeleteTeam\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"string\",\r\n \"name\": \"tournamentId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"Id of tournament\",\r\n \"format\": \"guid\",\r\n \"x-nullable\": false\r\n },\r\n {\r\n \"type\": \"string\",\r\n \"name\": \"teamId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"Id of team to delete\",\r\n \"format\": \"guid\",\r\n \"x-nullable\": false\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"type\": \"file\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/tournaments/{tournamentId}/teams/me\": {\r\n \"delete\": {\r\n \"tags\": [\r\n \"Tournament\"\r\n ],\r\n \"summary\": \"Leave a team and tournament\",\r\n \"operationId\": \"Tournament_LeaveTournament\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"string\",\r\n \"name\": \"tournamentId\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"Id of tournament\",\r\n \"format\": \"guid\",\r\n \"x-nullable\": false\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"type\": \"file\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/api/users/find/{query}\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"User\"\r\n ],\r\n \"summary\": \"Find users starting with the given query\",\r\n \"operationId\": \"User_FindUsers\",\r\n \"parameters\": [\r\n {\r\n \"type\": \"string\",\r\n \"name\": \"query\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"description\": \"Query to search for\",\r\n \"x-nullable\": false\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"x-nullable\": true,\r\n \"description\": \"\",\r\n \"schema\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/UserReference\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"definitions\": {\r\n \"LoginRequest\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"properties\": {\r\n \"grant_type\": {\r\n \"type\": \"string\"\r\n },\r\n \"username\": {\r\n \"type\": \"string\"\r\n },\r\n \"password\": {\r\n \"type\": \"string\"\r\n },\r\n \"scope\": {\r\n \"type\": \"string\"\r\n },\r\n \"refresh_token\": {\r\n \"type\": \"string\"\r\n }\r\n }\r\n },\r\n \"LoginResponseModel\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"properties\": {\r\n \"access_token\": {\r\n \"type\": \"string\"\r\n },\r\n \"refresh_token\": {\r\n \"type\": \"string\"\r\n }\r\n }\r\n },\r\n \"UserInfo\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"hasRegistered\",\r\n \"allianceAdmin\"\r\n ],\r\n \"properties\": {\r\n \"userId\": {\r\n \"type\": \"string\"\r\n },\r\n \"userName\": {\r\n \"type\": \"string\"\r\n },\r\n \"hasRegistered\": {\r\n \"type\": \"boolean\"\r\n },\r\n \"loginProvider\": {\r\n \"type\": \"string\"\r\n },\r\n \"language\": {\r\n \"type\": \"string\"\r\n },\r\n \"roles\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\"\r\n }\r\n },\r\n \"allianceId\": {\r\n \"type\": \"string\",\r\n \"format\": \"guid\"\r\n },\r\n \"allianceAdmin\": {\r\n \"type\": \"boolean\"\r\n }\r\n }\r\n },\r\n \"ManageInfoViewModel\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"properties\": {\r\n \"localLoginProvider\": {\r\n \"type\": \"string\"\r\n },\r\n \"userName\": {\r\n \"type\": \"string\"\r\n },\r\n \"logins\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/UserLoginInfoViewModel\"\r\n }\r\n },\r\n \"externalLoginProviders\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/ExternalLoginViewModel\"\r\n }\r\n }\r\n }\r\n },\r\n \"UserLoginInfoViewModel\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"properties\": {\r\n \"loginProvider\": {\r\n \"type\": \"string\"\r\n },\r\n \"providerKey\": {\r\n \"type\": \"string\"\r\n }\r\n }\r\n },\r\n \"ExternalLoginViewModel\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"properties\": {\r\n \"name\": {\r\n \"type\": \"string\"\r\n },\r\n \"authenticationScheme\": {\r\n \"type\": \"string\"\r\n }\r\n }\r\n },\r\n \"ChangePasswordBindingModel\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"oldPassword\",\r\n \"newPassword\"\r\n ],\r\n \"properties\": {\r\n \"oldPassword\": {\r\n \"type\": \"string\"\r\n },\r\n \"newPassword\": {\r\n \"type\": \"string\",\r\n \"maxLength\": 100,\r\n \"minLength\": 6\r\n },\r\n \"confirmPassword\": {\r\n \"type\": \"string\"\r\n }\r\n }\r\n },\r\n \"SetPasswordBindingModel\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"newPassword\"\r\n ],\r\n \"properties\": {\r\n \"newPassword\": {\r\n \"type\": \"string\",\r\n \"maxLength\": 100,\r\n \"minLength\": 6\r\n },\r\n \"confirmPassword\": {\r\n \"type\": \"string\"\r\n }\r\n }\r\n },\r\n \"DeleteAccountBindingModel\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"password\"\r\n ],\r\n \"properties\": {\r\n \"password\": {\r\n \"type\": \"string\"\r\n }\r\n }\r\n },\r\n \"ErrorResponse\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"properties\": {\r\n \"error\": {\r\n \"type\": \"string\"\r\n },\r\n \"error_Description\": {\r\n \"type\": \"string\"\r\n },\r\n \"parameter_Errors\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"RemoveLoginBindingModel\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"loginProvider\",\r\n \"providerKey\"\r\n ],\r\n \"properties\": {\r\n \"loginProvider\": {\r\n \"type\": \"string\"\r\n },\r\n \"providerKey\": {\r\n \"type\": \"string\"\r\n }\r\n }\r\n },\r\n \"RegisterBindingModel\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"userName\",\r\n \"password\",\r\n \"email\",\r\n \"language\",\r\n \"callbackUrl\"\r\n ],\r\n \"properties\": {\r\n \"userName\": {\r\n \"type\": \"string\"\r\n },\r\n \"password\": {\r\n \"type\": \"string\"\r\n },\r\n \"confirmPassword\": {\r\n \"type\": \"string\"\r\n },\r\n \"email\": {\r\n \"type\": \"string\"\r\n },\r\n \"language\": {\r\n \"type\": \"string\",\r\n \"maxLength\": 2,\r\n \"minLength\": 0\r\n },\r\n \"callbackUrl\": {\r\n \"type\": \"string\"\r\n }\r\n }\r\n },\r\n \"ResendConfirmationModel\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"callbackUrl\",\r\n \"userName\",\r\n \"password\",\r\n \"language\"\r\n ],\r\n \"properties\": {\r\n \"callbackUrl\": {\r\n \"type\": \"string\"\r\n },\r\n \"userName\": {\r\n \"type\": \"string\"\r\n },\r\n \"password\": {\r\n \"type\": \"string\"\r\n },\r\n \"language\": {\r\n \"type\": \"string\",\r\n \"maxLength\": 2,\r\n \"minLength\": 0\r\n }\r\n }\r\n },\r\n \"ConfirmationModel\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"userId\",\r\n \"code\"\r\n ],\r\n \"properties\": {\r\n \"userId\": {\r\n \"type\": \"string\"\r\n },\r\n \"code\": {\r\n \"type\": \"string\"\r\n }\r\n }\r\n },\r\n \"ForgotPasswordViewModel\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"callbackUrl\",\r\n \"userName\",\r\n \"email\",\r\n \"language\"\r\n ],\r\n \"properties\": {\r\n \"callbackUrl\": {\r\n \"type\": \"string\"\r\n },\r\n \"userName\": {\r\n \"type\": \"string\"\r\n },\r\n \"email\": {\r\n \"type\": \"string\",\r\n \"format\": \"email\"\r\n },\r\n \"language\": {\r\n \"type\": \"string\",\r\n \"maxLength\": 2,\r\n \"minLength\": 0\r\n }\r\n }\r\n },\r\n \"ResetPasswordViewModel\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"userId\",\r\n \"password\",\r\n \"code\"\r\n ],\r\n \"properties\": {\r\n \"userId\": {\r\n \"type\": \"string\"\r\n },\r\n \"password\": {\r\n \"type\": \"string\",\r\n \"maxLength\": 100,\r\n \"minLength\": 6\r\n },\r\n \"confirmPassword\": {\r\n \"type\": \"string\"\r\n },\r\n \"code\": {\r\n \"type\": \"string\"\r\n }\r\n }\r\n },\r\n \"RegisterExternalBindingModel\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"userName\",\r\n \"email\"\r\n ],\r\n \"properties\": {\r\n \"userName\": {\r\n \"type\": \"string\"\r\n },\r\n \"email\": {\r\n \"type\": \"string\",\r\n \"format\": \"email\"\r\n }\r\n }\r\n },\r\n \"AllianceSummary\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"id\",\r\n \"numberOfMembers\"\r\n ],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"format\": \"guid\"\r\n },\r\n \"name\": {\r\n \"type\": \"string\"\r\n },\r\n \"description\": {\r\n \"type\": \"string\"\r\n },\r\n \"numberOfMembers\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"admins\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/UserReference\"\r\n }\r\n }\r\n }\r\n },\r\n \"UserReference\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\"\r\n },\r\n \"name\": {\r\n \"type\": \"string\"\r\n }\r\n }\r\n },\r\n \"Alliance\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"properties\": {\r\n \"members\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/UserReference\"\r\n }\r\n }\r\n },\r\n \"allOf\": [\r\n {\r\n \"$ref\": \"#/definitions/AllianceSummary\"\r\n }\r\n ]\r\n },\r\n \"AllianceCreationOptions\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"name\",\r\n \"description\"\r\n ],\r\n \"properties\": {\r\n \"name\": {\r\n \"type\": \"string\",\r\n \"maxLength\": 64,\r\n \"minLength\": 3\r\n },\r\n \"description\": {\r\n \"type\": \"string\",\r\n \"maxLength\": 256,\r\n \"minLength\": 3\r\n }\r\n }\r\n },\r\n \"AllianceJoinRequest\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"id\",\r\n \"createdAt\",\r\n \"allianceId\",\r\n \"lastModifiedAt\",\r\n \"state\"\r\n ],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"format\": \"guid\"\r\n },\r\n \"createdAt\": {\r\n \"type\": \"string\",\r\n \"format\": \"date-time\"\r\n },\r\n \"allianceId\": {\r\n \"type\": \"string\",\r\n \"format\": \"guid\"\r\n },\r\n \"lastModifiedAt\": {\r\n \"type\": \"string\",\r\n \"format\": \"date-time\"\r\n },\r\n \"requestedByUserId\": {\r\n \"type\": \"string\"\r\n },\r\n \"state\": {\r\n \"$ref\": \"#/definitions/AllianceJoinRequestState\"\r\n },\r\n \"reason\": {\r\n \"type\": \"string\"\r\n }\r\n }\r\n },\r\n \"AllianceJoinRequestState\": {\r\n \"type\": \"string\",\r\n \"description\": \"\",\r\n \"x-enumNames\": [\r\n \"Active\",\r\n \"Approved\",\r\n \"Denied\"\r\n ],\r\n \"enum\": [\r\n \"Active\",\r\n \"Approved\",\r\n \"Denied\"\r\n ]\r\n },\r\n \"GameSummary\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"id\",\r\n \"type\",\r\n \"hasPassword\",\r\n \"lastActionAt\",\r\n \"timeoutSecondsLeft\",\r\n \"state\",\r\n \"turnCounter\"\r\n ],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int64\"\r\n },\r\n \"type\": {\r\n \"$ref\": \"#/definitions/GameType\"\r\n },\r\n \"name\": {\r\n \"type\": \"string\"\r\n },\r\n \"hasPassword\": {\r\n \"type\": \"boolean\"\r\n },\r\n \"ladderId\": {\r\n \"type\": \"string\",\r\n \"format\": \"guid\"\r\n },\r\n \"ladderName\": {\r\n \"type\": \"string\"\r\n },\r\n \"options\": {\r\n \"$ref\": \"#/definitions/GameOptions\"\r\n },\r\n \"createdByUserId\": {\r\n \"type\": \"string\"\r\n },\r\n \"createdByName\": {\r\n \"type\": \"string\"\r\n },\r\n \"startedAt\": {\r\n \"type\": \"string\",\r\n \"format\": \"date-time\"\r\n },\r\n \"lastActionAt\": {\r\n \"type\": \"string\",\r\n \"format\": \"date-time\"\r\n },\r\n \"timeoutSecondsLeft\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"mapTemplate\": {\r\n \"type\": \"string\"\r\n },\r\n \"state\": {\r\n \"$ref\": \"#/definitions/GameState\"\r\n },\r\n \"currentPlayer\": {\r\n \"$ref\": \"#/definitions/PlayerSummary\"\r\n },\r\n \"teams\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/TeamSummary\"\r\n }\r\n },\r\n \"turnCounter\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n }\r\n }\r\n },\r\n \"GameType\": {\r\n \"type\": \"string\",\r\n \"description\": \"\",\r\n \"x-enumNames\": [\r\n \"Fun\",\r\n \"Ranking\",\r\n \"Tournament\"\r\n ],\r\n \"enum\": [\r\n \"Fun\",\r\n \"Ranking\",\r\n \"Tournament\"\r\n ]\r\n },\r\n \"GameOptions\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"numberOfPlayersPerTeam\",\r\n \"numberOfTeams\",\r\n \"minUnitsPerCountry\",\r\n \"newUnitsPerTurn\",\r\n \"attacksPerTurn\",\r\n \"movesPerTurn\",\r\n \"initialCountryUnits\",\r\n \"mapDistribution\",\r\n \"timeoutInSeconds\",\r\n \"maximumTimeoutsPerPlayer\",\r\n \"maximumNumberOfCards\",\r\n \"victoryConditions\",\r\n \"visibilityModifier\"\r\n ],\r\n \"properties\": {\r\n \"numberOfPlayersPerTeam\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"maximum\": 8.0,\r\n \"minimum\": 1.0\r\n },\r\n \"numberOfTeams\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"maximum\": 16.0,\r\n \"minimum\": 2.0\r\n },\r\n \"minUnitsPerCountry\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"maximum\": 5.0,\r\n \"minimum\": 0.0\r\n },\r\n \"newUnitsPerTurn\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"maximum\": 10.0,\r\n \"minimum\": 3.0\r\n },\r\n \"attacksPerTurn\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"maximum\": 100.0,\r\n \"minimum\": 1.0\r\n },\r\n \"movesPerTurn\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"maximum\": 100.0,\r\n \"minimum\": 1.0\r\n },\r\n \"initialCountryUnits\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"maximum\": 5.0,\r\n \"minimum\": 0.0\r\n },\r\n \"mapDistribution\": {\r\n \"$ref\": \"#/definitions/MapDistribution\"\r\n },\r\n \"timeoutInSeconds\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"maximum\": 432000.0,\r\n \"minimum\": 180.0\r\n },\r\n \"maximumTimeoutsPerPlayer\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"maximumNumberOfCards\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"maximum\": 10.0,\r\n \"minimum\": 0.0\r\n },\r\n \"victoryConditions\": {\r\n \"type\": \"array\",\r\n \"minItems\": 1,\r\n \"items\": {\r\n \"$ref\": \"#/definitions/VictoryConditionType\"\r\n }\r\n },\r\n \"visibilityModifier\": {\r\n \"type\": \"array\",\r\n \"minItems\": 1,\r\n \"items\": {\r\n \"$ref\": \"#/definitions/VisibilityModifierType\"\r\n }\r\n }\r\n }\r\n },\r\n \"MapDistribution\": {\r\n \"type\": \"string\",\r\n \"description\": \"\",\r\n \"x-enumNames\": [\r\n \"Default\",\r\n \"Malibu\"\r\n ],\r\n \"enum\": [\r\n \"Default\",\r\n \"Malibu\"\r\n ]\r\n },\r\n \"VictoryConditionType\": {\r\n \"type\": \"string\",\r\n \"description\": \"\",\r\n \"x-enumNames\": [\r\n \"Survival\",\r\n \"ControlContinent\"\r\n ],\r\n \"enum\": [\r\n \"Survival\",\r\n \"ControlContinent\"\r\n ]\r\n },\r\n \"VisibilityModifierType\": {\r\n \"type\": \"string\",\r\n \"description\": \"\",\r\n \"x-enumNames\": [\r\n \"None\",\r\n \"Fog\"\r\n ],\r\n \"enum\": [\r\n \"None\",\r\n \"Fog\"\r\n ]\r\n },\r\n \"GameState\": {\r\n \"type\": \"string\",\r\n \"description\": \"\",\r\n \"x-enumNames\": [\r\n \"None\",\r\n \"Open\",\r\n \"Active\",\r\n \"Ended\"\r\n ],\r\n \"enum\": [\r\n \"None\",\r\n \"Open\",\r\n \"Active\",\r\n \"Ended\"\r\n ]\r\n },\r\n \"PlayerSummary\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"id\",\r\n \"state\",\r\n \"outcome\",\r\n \"teamId\",\r\n \"playOrder\",\r\n \"timeouts\"\r\n ],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"format\": \"guid\"\r\n },\r\n \"userId\": {\r\n \"type\": \"string\"\r\n },\r\n \"name\": {\r\n \"type\": \"string\"\r\n },\r\n \"state\": {\r\n \"$ref\": \"#/definitions/PlayerState\"\r\n },\r\n \"outcome\": {\r\n \"$ref\": \"#/definitions/PlayerOutcome\"\r\n },\r\n \"teamId\": {\r\n \"type\": \"string\",\r\n \"format\": \"guid\"\r\n },\r\n \"playOrder\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"timeouts\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n }\r\n }\r\n },\r\n \"PlayerState\": {\r\n \"type\": \"string\",\r\n \"description\": \"\",\r\n \"x-enumNames\": [\r\n \"None\",\r\n \"Active\",\r\n \"InActive\"\r\n ],\r\n \"enum\": [\r\n \"None\",\r\n \"Active\",\r\n \"InActive\"\r\n ]\r\n },\r\n \"PlayerOutcome\": {\r\n \"type\": \"string\",\r\n \"description\": \"\",\r\n \"x-enumNames\": [\r\n \"None\",\r\n \"Won\",\r\n \"Defeated\",\r\n \"Surrendered\",\r\n \"Timeout\"\r\n ],\r\n \"enum\": [\r\n \"None\",\r\n \"Won\",\r\n \"Defeated\",\r\n \"Surrendered\",\r\n \"Timeout\"\r\n ]\r\n },\r\n \"TeamSummary\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"id\",\r\n \"playOrder\"\r\n ],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"format\": \"guid\"\r\n },\r\n \"playOrder\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"players\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/PlayerSummary\"\r\n }\r\n }\r\n }\r\n },\r\n \"GameCreationOptions\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"name\",\r\n \"addBot\",\r\n \"mapTemplate\"\r\n ],\r\n \"properties\": {\r\n \"name\": {\r\n \"type\": \"string\",\r\n \"maxLength\": 64,\r\n \"minLength\": 3\r\n },\r\n \"password\": {\r\n \"type\": \"string\",\r\n \"maxLength\": 64,\r\n \"minLength\": 3\r\n },\r\n \"addBot\": {\r\n \"type\": \"boolean\"\r\n },\r\n \"mapTemplate\": {\r\n \"type\": \"string\",\r\n \"maxLength\": 64,\r\n \"minLength\": 1\r\n }\r\n },\r\n \"allOf\": [\r\n {\r\n \"$ref\": \"#/definitions/GameOptions\"\r\n }\r\n ]\r\n },\r\n \"Game\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"id\",\r\n \"type\",\r\n \"hasPassword\",\r\n \"state\",\r\n \"playState\",\r\n \"lastModifiedAt\",\r\n \"timeoutSecondsLeft\",\r\n \"turnCounter\",\r\n \"unitsToPlace\",\r\n \"attacksInCurrentTurn\",\r\n \"movesInCurrentTurn\"\r\n ],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int64\"\r\n },\r\n \"type\": {\r\n \"$ref\": \"#/definitions/GameType\"\r\n },\r\n \"name\": {\r\n \"type\": \"string\"\r\n },\r\n \"hasPassword\": {\r\n \"type\": \"boolean\"\r\n },\r\n \"mapTemplate\": {\r\n \"type\": \"string\"\r\n },\r\n \"teams\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/Team\"\r\n }\r\n },\r\n \"state\": {\r\n \"$ref\": \"#/definitions/GameState\"\r\n },\r\n \"playState\": {\r\n \"$ref\": \"#/definitions/PlayState\"\r\n },\r\n \"currentPlayer\": {\r\n \"$ref\": \"#/definitions/PlayerSummary\"\r\n },\r\n \"map\": {\r\n \"$ref\": \"#/definitions/Map\"\r\n },\r\n \"options\": {\r\n \"$ref\": \"#/definitions/GameOptions\"\r\n },\r\n \"lastModifiedAt\": {\r\n \"type\": \"string\",\r\n \"format\": \"date-time\"\r\n },\r\n \"timeoutSecondsLeft\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"turnCounter\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"unitsToPlace\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"attacksInCurrentTurn\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"movesInCurrentTurn\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n }\r\n }\r\n },\r\n \"Team\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"id\",\r\n \"playOrder\"\r\n ],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"format\": \"guid\"\r\n },\r\n \"playOrder\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"players\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/Player\"\r\n }\r\n }\r\n }\r\n },\r\n \"Player\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"placedInitialUnits\",\r\n \"numberOfUnits\",\r\n \"numberOfCountries\"\r\n ],\r\n \"properties\": {\r\n \"cards\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/BonusCard\"\r\n }\r\n },\r\n \"placedInitialUnits\": {\r\n \"type\": \"boolean\"\r\n },\r\n \"numberOfUnits\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"numberOfCountries\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n }\r\n },\r\n \"allOf\": [\r\n {\r\n \"$ref\": \"#/definitions/PlayerSummary\"\r\n }\r\n ]\r\n },\r\n \"BonusCard\": {\r\n \"type\": \"string\",\r\n \"description\": \"\",\r\n \"x-enumNames\": [\r\n \"A\",\r\n \"B\",\r\n \"C\"\r\n ],\r\n \"enum\": [\r\n \"A\",\r\n \"B\",\r\n \"C\"\r\n ]\r\n },\r\n \"PlayState\": {\r\n \"type\": \"string\",\r\n \"description\": \"\",\r\n \"x-enumNames\": [\r\n \"None\",\r\n \"PlaceUnits\",\r\n \"Attack\",\r\n \"Move\",\r\n \"Done\"\r\n ],\r\n \"enum\": [\r\n \"None\",\r\n \"PlaceUnits\",\r\n \"Attack\",\r\n \"Move\",\r\n \"Done\"\r\n ]\r\n },\r\n \"Map\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"properties\": {\r\n \"countries\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/Country\"\r\n }\r\n }\r\n }\r\n },\r\n \"Country\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"playerId\",\r\n \"teamId\",\r\n \"units\"\r\n ],\r\n \"properties\": {\r\n \"identifier\": {\r\n \"type\": \"string\"\r\n },\r\n \"playerId\": {\r\n \"type\": \"string\",\r\n \"format\": \"guid\"\r\n },\r\n \"teamId\": {\r\n \"type\": \"string\",\r\n \"format\": \"guid\"\r\n },\r\n \"units\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n }\r\n }\r\n },\r\n \"GameChatMessage\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"id\",\r\n \"gameId\",\r\n \"teamId\",\r\n \"dateTime\"\r\n ],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int64\"\r\n },\r\n \"gameId\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int64\"\r\n },\r\n \"user\": {\r\n \"$ref\": \"#/definitions/UserReference\"\r\n },\r\n \"teamId\": {\r\n \"type\": \"string\",\r\n \"format\": \"guid\"\r\n },\r\n \"dateTime\": {\r\n \"type\": \"string\",\r\n \"format\": \"date-time\"\r\n },\r\n \"text\": {\r\n \"type\": \"string\"\r\n }\r\n }\r\n },\r\n \"HistoryTurn\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"gameId\",\r\n \"turnId\"\r\n ],\r\n \"properties\": {\r\n \"gameId\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int64\"\r\n },\r\n \"turnId\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int64\"\r\n },\r\n \"actions\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/HistoryEntry\"\r\n }\r\n },\r\n \"game\": {\r\n \"$ref\": \"#/definitions/Game\"\r\n }\r\n }\r\n },\r\n \"HistoryEntry\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"id\",\r\n \"turnNo\",\r\n \"dateTime\",\r\n \"actorId\",\r\n \"action\"\r\n ],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int64\"\r\n },\r\n \"turnNo\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int64\"\r\n },\r\n \"dateTime\": {\r\n \"type\": \"string\",\r\n \"format\": \"date-time\"\r\n },\r\n \"actorId\": {\r\n \"type\": \"string\",\r\n \"format\": \"guid\"\r\n },\r\n \"otherPlayerId\": {\r\n \"type\": \"string\",\r\n \"format\": \"guid\"\r\n },\r\n \"action\": {\r\n \"$ref\": \"#/definitions/HistoryAction\"\r\n },\r\n \"originIdentifier\": {\r\n \"type\": \"string\"\r\n },\r\n \"destinationIdentifier\": {\r\n \"type\": \"string\"\r\n },\r\n \"units\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"unitsLost\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"unitsLostOther\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"result\": {\r\n \"type\": \"boolean\"\r\n }\r\n }\r\n },\r\n \"HistoryAction\": {\r\n \"type\": \"string\",\r\n \"description\": \"\",\r\n \"x-enumNames\": [\r\n \"None\",\r\n \"StartGame\",\r\n \"EndGame\",\r\n \"PlaceUnits\",\r\n \"Attack\",\r\n \"Move\",\r\n \"ExchangeCards\",\r\n \"PlayerLost\",\r\n \"PlayerWon\",\r\n \"PlayerTimeout\",\r\n \"OwnerChange\",\r\n \"EndTurn\",\r\n \"PlayerSurrendered\"\r\n ],\r\n \"enum\": [\r\n \"None\",\r\n \"StartGame\",\r\n \"EndGame\",\r\n \"PlaceUnits\",\r\n \"Attack\",\r\n \"Move\",\r\n \"ExchangeCards\",\r\n \"PlayerLost\",\r\n \"PlayerWon\",\r\n \"PlayerTimeout\",\r\n \"OwnerChange\",\r\n \"EndTurn\",\r\n \"PlayerSurrendered\"\r\n ]\r\n },\r\n \"LadderSummary\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"id\",\r\n \"isQueued\",\r\n \"queueCount\",\r\n \"mapTemplates\"\r\n ],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"format\": \"guid\"\r\n },\r\n \"name\": {\r\n \"type\": \"string\"\r\n },\r\n \"options\": {\r\n \"$ref\": \"#/definitions/GameOptions\"\r\n },\r\n \"standing\": {\r\n \"$ref\": \"#/definitions/LadderStanding\"\r\n },\r\n \"isQueued\": {\r\n \"type\": \"boolean\"\r\n },\r\n \"queueCount\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"mapTemplates\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\"\r\n }\r\n }\r\n }\r\n },\r\n \"LadderStanding\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"position\",\r\n \"gamesPlayed\",\r\n \"gamesWon\",\r\n \"gamesLost\",\r\n \"rating\",\r\n \"lastGame\"\r\n ],\r\n \"properties\": {\r\n \"userId\": {\r\n \"type\": \"string\"\r\n },\r\n \"userName\": {\r\n \"type\": \"string\"\r\n },\r\n \"position\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"gamesPlayed\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"gamesWon\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"gamesLost\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"rating\": {\r\n \"type\": \"number\",\r\n \"format\": \"double\"\r\n },\r\n \"lastGame\": {\r\n \"type\": \"string\",\r\n \"format\": \"date-time\"\r\n }\r\n }\r\n },\r\n \"Ladder\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"isActive\"\r\n ],\r\n \"properties\": {\r\n \"standings\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/LadderStanding\"\r\n }\r\n },\r\n \"isActive\": {\r\n \"type\": \"boolean\"\r\n }\r\n },\r\n \"allOf\": [\r\n {\r\n \"$ref\": \"#/definitions/LadderSummary\"\r\n }\r\n ]\r\n },\r\n \"MapTemplateDescriptor\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"isActive\"\r\n ],\r\n \"properties\": {\r\n \"name\": {\r\n \"type\": \"string\"\r\n },\r\n \"isActive\": {\r\n \"type\": \"boolean\"\r\n }\r\n }\r\n },\r\n \"MapTemplate\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"properties\": {\r\n \"name\": {\r\n \"type\": \"string\"\r\n },\r\n \"image\": {\r\n \"type\": \"string\"\r\n },\r\n \"countries\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/CountryTemplate\"\r\n }\r\n },\r\n \"connections\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/Connection\"\r\n }\r\n },\r\n \"continents\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/Continent\"\r\n }\r\n }\r\n }\r\n },\r\n \"CountryTemplate\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"x\",\r\n \"y\"\r\n ],\r\n \"properties\": {\r\n \"identifier\": {\r\n \"type\": \"string\"\r\n },\r\n \"name\": {\r\n \"type\": \"string\"\r\n },\r\n \"x\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"y\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n }\r\n }\r\n },\r\n \"Connection\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"properties\": {\r\n \"origin\": {\r\n \"type\": \"string\"\r\n },\r\n \"destination\": {\r\n \"type\": \"string\"\r\n }\r\n }\r\n },\r\n \"Continent\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"id\",\r\n \"bonus\"\r\n ],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int64\"\r\n },\r\n \"name\": {\r\n \"type\": \"string\"\r\n },\r\n \"bonus\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"countries\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\"\r\n }\r\n }\r\n }\r\n },\r\n \"MessageFolder\": {\r\n \"type\": \"string\",\r\n \"description\": \"\",\r\n \"x-enumNames\": [\r\n \"None\",\r\n \"Inbox\",\r\n \"Sent\"\r\n ],\r\n \"enum\": [\r\n \"None\",\r\n \"Inbox\",\r\n \"Sent\"\r\n ]\r\n },\r\n \"Message\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"id\",\r\n \"folder\",\r\n \"sentAt\",\r\n \"isRead\"\r\n ],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"format\": \"guid\"\r\n },\r\n \"from\": {\r\n \"$ref\": \"#/definitions/UserReference\"\r\n },\r\n \"folder\": {\r\n \"$ref\": \"#/definitions/MessageFolder\"\r\n },\r\n \"sentAt\": {\r\n \"type\": \"string\",\r\n \"format\": \"date-time\"\r\n },\r\n \"isRead\": {\r\n \"type\": \"boolean\"\r\n }\r\n },\r\n \"allOf\": [\r\n {\r\n \"$ref\": \"#/definitions/SendMessage\"\r\n }\r\n ]\r\n },\r\n \"SendMessage\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"to\"\r\n ],\r\n \"properties\": {\r\n \"to\": {\r\n \"$ref\": \"#/definitions/UserReference\"\r\n },\r\n \"subject\": {\r\n \"type\": \"string\"\r\n },\r\n \"text\": {\r\n \"type\": \"string\"\r\n }\r\n }\r\n },\r\n \"FolderInformation\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"folder\",\r\n \"count\",\r\n \"unreadCount\"\r\n ],\r\n \"properties\": {\r\n \"folder\": {\r\n \"$ref\": \"#/definitions/MessageFolder\"\r\n },\r\n \"count\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"unreadCount\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n }\r\n }\r\n },\r\n \"NewsItem\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"dateTime\"\r\n ],\r\n \"properties\": {\r\n \"dateTime\": {\r\n \"type\": \"string\",\r\n \"format\": \"date-time\"\r\n },\r\n \"postedBy\": {\r\n \"type\": \"string\"\r\n },\r\n \"content\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/NewsContent\"\r\n }\r\n }\r\n }\r\n },\r\n \"NewsContent\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"properties\": {\r\n \"language\": {\r\n \"type\": \"string\"\r\n },\r\n \"title\": {\r\n \"type\": \"string\"\r\n },\r\n \"text\": {\r\n \"type\": \"string\"\r\n }\r\n }\r\n },\r\n \"NotificationSummary\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"numberOfGames\",\r\n \"numberOfMessages\"\r\n ],\r\n \"properties\": {\r\n \"numberOfGames\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"numberOfMessages\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n }\r\n }\r\n },\r\n \"PlaceUnitsOptions\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"countryIdentifier\",\r\n \"numberOfUnits\"\r\n ],\r\n \"properties\": {\r\n \"countryIdentifier\": {\r\n \"type\": \"string\",\r\n \"maxLength\": 64,\r\n \"minLength\": 1\r\n },\r\n \"numberOfUnits\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"maximum\": 64000.0,\r\n \"minimum\": 1.0\r\n }\r\n }\r\n },\r\n \"GameActionResult\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"id\",\r\n \"turnCounter\",\r\n \"state\",\r\n \"playState\",\r\n \"actionResult\",\r\n \"unitsToPlace\",\r\n \"attacksInCurrentTurn\",\r\n \"movesInCurrentTurn\"\r\n ],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int64\"\r\n },\r\n \"turnCounter\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"teams\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/Team\"\r\n }\r\n },\r\n \"state\": {\r\n \"$ref\": \"#/definitions/GameState\"\r\n },\r\n \"playState\": {\r\n \"$ref\": \"#/definitions/PlayState\"\r\n },\r\n \"countryUpdates\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/Country\"\r\n }\r\n },\r\n \"actionResult\": {\r\n \"$ref\": \"#/definitions/Result\"\r\n },\r\n \"unitsToPlace\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"attacksInCurrentTurn\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"movesInCurrentTurn\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"cards\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/BonusCard\"\r\n }\r\n },\r\n \"currentPlayer\": {\r\n \"$ref\": \"#/definitions/Player\"\r\n }\r\n }\r\n },\r\n \"Result\": {\r\n \"type\": \"string\",\r\n \"description\": \"\",\r\n \"x-enumNames\": [\r\n \"None\",\r\n \"Successful\",\r\n \"NotSuccessful\"\r\n ],\r\n \"enum\": [\r\n \"None\",\r\n \"Successful\",\r\n \"NotSuccessful\"\r\n ]\r\n },\r\n \"AttackOptions\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"originCountryIdentifier\",\r\n \"destinationCountryIdentifier\",\r\n \"numberOfUnits\"\r\n ],\r\n \"properties\": {\r\n \"originCountryIdentifier\": {\r\n \"type\": \"string\",\r\n \"maxLength\": 64,\r\n \"minLength\": 1\r\n },\r\n \"destinationCountryIdentifier\": {\r\n \"type\": \"string\",\r\n \"maxLength\": 64,\r\n \"minLength\": 1\r\n },\r\n \"numberOfUnits\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"maximum\": 64000.0,\r\n \"minimum\": 1.0\r\n }\r\n }\r\n },\r\n \"MoveOptions\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"originCountryIdentifier\",\r\n \"destinationCountryIdentifier\",\r\n \"numberOfUnits\"\r\n ],\r\n \"properties\": {\r\n \"originCountryIdentifier\": {\r\n \"type\": \"string\",\r\n \"maxLength\": 64,\r\n \"minLength\": 1\r\n },\r\n \"destinationCountryIdentifier\": {\r\n \"type\": \"string\",\r\n \"maxLength\": 64,\r\n \"minLength\": 1\r\n },\r\n \"numberOfUnits\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"maximum\": 64000.0,\r\n \"minimum\": 1.0\r\n }\r\n }\r\n },\r\n \"TournamentSummary\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"id\",\r\n \"name\",\r\n \"state\",\r\n \"numberOfTeams\",\r\n \"numberOfGroupGames\",\r\n \"numberOfKnockoutGames\",\r\n \"numberOfFinalGames\",\r\n \"startOfRegistration\",\r\n \"startOfTournament\",\r\n \"endOfTournament\",\r\n \"completion\"\r\n ],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"format\": \"guid\"\r\n },\r\n \"name\": {\r\n \"type\": \"string\",\r\n \"maxLength\": 256,\r\n \"minLength\": 0\r\n },\r\n \"state\": {\r\n \"$ref\": \"#/definitions/TournamentState\"\r\n },\r\n \"options\": {\r\n \"$ref\": \"#/definitions/GameOptions\"\r\n },\r\n \"numberOfTeams\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"numberOfGroupGames\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"numberOfKnockoutGames\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"numberOfFinalGames\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"startOfRegistration\": {\r\n \"type\": \"string\",\r\n \"format\": \"date-time\"\r\n },\r\n \"startOfTournament\": {\r\n \"type\": \"string\",\r\n \"format\": \"date-time\"\r\n },\r\n \"endOfTournament\": {\r\n \"type\": \"string\",\r\n \"format\": \"date-time\"\r\n },\r\n \"completion\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n }\r\n }\r\n },\r\n \"TournamentState\": {\r\n \"type\": \"string\",\r\n \"description\": \"\",\r\n \"x-enumNames\": [\r\n \"Open\",\r\n \"Groups\",\r\n \"Knockout\",\r\n \"Closed\"\r\n ],\r\n \"enum\": [\r\n \"Open\",\r\n \"Groups\",\r\n \"Knockout\",\r\n \"Closed\"\r\n ]\r\n },\r\n \"Tournament\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"phase\"\r\n ],\r\n \"properties\": {\r\n \"teams\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/TournamentTeam\"\r\n }\r\n },\r\n \"groups\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/TournamentGroup\"\r\n }\r\n },\r\n \"pairings\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/TournamentPairing\"\r\n }\r\n },\r\n \"mapTemplates\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\"\r\n }\r\n },\r\n \"winner\": {\r\n \"$ref\": \"#/definitions/TournamentTeam\"\r\n },\r\n \"phase\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n }\r\n },\r\n \"allOf\": [\r\n {\r\n \"$ref\": \"#/definitions/TournamentSummary\"\r\n }\r\n ]\r\n },\r\n \"TournamentTeam\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"properties\": {\r\n \"participants\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/UserReference\"\r\n }\r\n }\r\n },\r\n \"allOf\": [\r\n {\r\n \"$ref\": \"#/definitions/TournamentTeamSummary\"\r\n }\r\n ]\r\n },\r\n \"TournamentTeamSummary\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"id\",\r\n \"groupOrder\",\r\n \"state\"\r\n ],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"format\": \"guid\"\r\n },\r\n \"name\": {\r\n \"type\": \"string\"\r\n },\r\n \"createdById\": {\r\n \"type\": \"string\"\r\n },\r\n \"groupOrder\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"state\": {\r\n \"$ref\": \"#/definitions/TournamentTeamState\"\r\n }\r\n }\r\n },\r\n \"TournamentTeamState\": {\r\n \"type\": \"string\",\r\n \"description\": \"\",\r\n \"x-enumNames\": [\r\n \"Open\",\r\n \"Active\",\r\n \"InActive\"\r\n ],\r\n \"enum\": [\r\n \"Open\",\r\n \"Active\",\r\n \"InActive\"\r\n ]\r\n },\r\n \"TournamentGroup\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"id\"\r\n ],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"format\": \"guid\"\r\n },\r\n \"teams\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/TournamentTeamSummary\"\r\n }\r\n }\r\n }\r\n },\r\n \"TournamentPairing\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"id\",\r\n \"teamAWon\",\r\n \"teamBWon\",\r\n \"numberOfGames\",\r\n \"phase\",\r\n \"order\"\r\n ],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"format\": \"guid\"\r\n },\r\n \"teamA\": {\r\n \"$ref\": \"#/definitions/TournamentTeamSummary\"\r\n },\r\n \"teamB\": {\r\n \"$ref\": \"#/definitions/TournamentTeamSummary\"\r\n },\r\n \"teamAWon\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"teamBWon\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"numberOfGames\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"phase\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"order\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\"\r\n }\r\n }\r\n }\r\n }\r\n}",
"url": "http://localhost:57676/swagger/v1/swagger.json",
"output": null
}
},
"codeGenerators": {
"swaggerToTypeScriptClient": {
"className": "{controller}Client",
"moduleName": "",
"namespace": "",
"typeScriptVersion": 2.7,
"template": "Fetch",
"promiseType": "Promise",
"httpClass": "Http",
"injectionTokenType": "OpaqueToken",
"dateTimeType": "Date",
"nullValue": "Undefined",
"generateClientClasses": true,
"generateClientInterfaces": false,
"generateOptionalParameters": false,
"wrapDtoExceptions": false,
"clientBaseClass": "",
"wrapResponses": false,
"generateResponseClasses": true,
"responseClass": "SwaggerResponse",
"configurationClass": "",
"useTransformOptionsMethod": false,
"useTransformResultMethod": false,
"generateDtoTypes": true,
"operationGenerationMode": "MultipleClientsFromOperationId",
"markOptionalProperties": true,
"generateCloneMethod": false,
"typeStyle": "Interface",
"extendedClasses": [],
"extensionCode": "",
"generateDefaultValues": true,
"excludedTypeNames": [],
"handleReferences": false,
"generateConstructorInterface": true,
"convertConstructorInterfaceData": false,
"importRequiredTypes": true,
"useGetBaseUrlMethod": false,
"baseUrlTokenName": "API_BASE_URL",
"queryNullValue": "",
"output": "../ImperaPlus.Client/src/external/imperaClients.ts"
}
}
}