result of make npm@update && make npm@openapi

This commit is contained in:
Alessandro Petitcollin 2026-01-10 18:18:43 +01:00 committed by Maix0
parent 830d733f1b
commit 1c6a513e4f
12 changed files with 1113 additions and 0 deletions

View file

@ -2144,6 +2144,105 @@
]
}
},
"/createPausedGame": {
"post": {
"operationId": "pongCreatePauseGame",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"user1",
"user2"
],
"properties": {
"user1": {
"type": "string",
"description": "'id' | <userid>"
},
"user2": {
"type": "string",
"description": "'id' | <userid>"
}
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"kind",
"msg",
"payload"
],
"properties": {
"kind": {
"enum": [
"success"
]
},
"msg": {
"enum": [
"createPausedGame.success"
]
},
"payload": {
"type": "object",
"required": [
"gameId"
],
"properties": {
"gameId": {
"type": "string",
"description": "gameId"
}
}
}
}
}
}
}
},
"404": {
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"kind",
"msg"
],
"properties": {
"kind": {
"enum": [
"failure"
]
},
"msg": {
"enum": [
"createPausedGame.generic.fail"
]
}
}
}
}
}
}
},
"tags": [
"openapi_other"
]
}
},
"/api/pong/history/{user}": {
"get": {
"operationId": "pongHistory",
@ -2351,6 +2450,92 @@
"openapi_other"
]
}
},
"/startPausedGame": {
"post": {
"operationId": "pongstartPauseGame",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"gameId"
],
"properties": {
"gameId": {
"type": "string",
"description": "'id' | <gameid>"
}
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"kind",
"msg",
"payload"
],
"properties": {
"kind": {
"enum": [
"success"
]
},
"msg": {
"enum": [
"startPausedGame.success"
]
},
"payload": {
"type": "object",
"properties": {}
}
}
}
}
}
},
"404": {
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"kind",
"msg"
],
"properties": {
"kind": {
"enum": [
"failure"
]
},
"msg": {
"enum": [
"startPausedGame.no_such_game"
]
}
}
}
}
}
}
},
"tags": [
"openapi_other"
]
}
}
},
"components": {

View file

@ -8,6 +8,102 @@
"schemas": {}
},
"paths": {
"/createPausedGame": {
"post": {
"operationId": "pongCreatePauseGame",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"user1",
"user2"
],
"properties": {
"user1": {
"type": "string",
"description": "'id' | <userid>"
},
"user2": {
"type": "string",
"description": "'id' | <userid>"
}
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"kind",
"msg",
"payload"
],
"properties": {
"kind": {
"enum": [
"success"
]
},
"msg": {
"enum": [
"createPausedGame.success"
]
},
"payload": {
"type": "object",
"required": [
"gameId"
],
"properties": {
"gameId": {
"type": "string",
"description": "gameId"
}
}
}
}
}
}
}
},
"404": {
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"kind",
"msg"
],
"properties": {
"kind": {
"enum": [
"failure"
]
},
"msg": {
"enum": [
"createPausedGame.generic.fail"
]
}
}
}
}
}
}
}
}
},
"/api/pong/history/{user}": {
"get": {
"operationId": "pongHistory",
@ -212,6 +308,89 @@
}
}
}
},
"/startPausedGame": {
"post": {
"operationId": "pongstartPauseGame",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"gameId"
],
"properties": {
"gameId": {
"type": "string",
"description": "'id' | <gameid>"
}
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"kind",
"msg",
"payload"
],
"properties": {
"kind": {
"enum": [
"success"
]
},
"msg": {
"enum": [
"startPausedGame.success"
]
},
"payload": {
"type": "object",
"properties": {}
}
}
}
}
}
},
"404": {
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"kind",
"msg"
],
"properties": {
"kind": {
"enum": [
"failure"
]
},
"msg": {
"enum": [
"startPausedGame.no_such_game"
]
}
}
}
}
}
}
}
}
}
},
"servers": [