add update node

This commit is contained in:
2025-12-07 03:41:45 +07:00
parent 2192bf4e77
commit 49c415d4b9
13 changed files with 538 additions and 236 deletions
+94 -51
View File
@@ -141,6 +141,38 @@
]
}
},
"/graph/nodes": {
"put": {
"operationId": "EveningDetective_UpdateNode",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/evening_detectiveUpdateNodeRsp"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/evening_detectiveUpdateNodeReq"
}
}
],
"tags": [
"EveningDetective"
]
}
},
"/ping": {
"get": {
"operationId": "EveningDetective_Ping",
@@ -348,45 +380,6 @@
}
}
},
"GetGraphRspNode": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int32"
},
"label": {
"type": "string"
},
"name": {
"type": "string"
},
"text": {
"type": "string"
},
"applications": {
"type": "array",
"items": {
"$ref": "#/definitions/evening_detectiveGetGraphRspApplication"
}
}
}
},
"crabsevening_detectiveApplication": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "int64"
},
"name": {
"type": "string"
},
"state": {
"type": "string"
}
}
},
"evening_detectiveAction": {
"type": "object",
"properties": {
@@ -406,7 +399,7 @@
"applications": {
"type": "array",
"items": {
"$ref": "#/definitions/crabsevening_detectiveApplication"
"$ref": "#/definitions/evening_detectiveApplication"
}
}
}
@@ -444,6 +437,21 @@
}
}
},
"evening_detectiveApplication": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "int64"
},
"name": {
"type": "string"
},
"state": {
"type": "string"
}
}
},
"evening_detectiveDownloadTeamsQrCodesFileRsp": {
"type": "object",
"properties": {
@@ -491,7 +499,7 @@
"nodes": {
"type": "array",
"items": {
"$ref": "#/definitions/GetGraphRspNode"
"$ref": "#/definitions/evening_detectiveGraphNode"
}
},
"edges": {
@@ -510,14 +518,6 @@
}
}
},
"evening_detectiveGetGraphRspApplication": {
"type": "object",
"properties": {
"name": {
"type": "string"
}
}
},
"evening_detectiveGetTeamRsp": {
"type": "object",
"properties": {
@@ -561,7 +561,7 @@
"applications": {
"type": "array",
"items": {
"$ref": "#/definitions/crabsevening_detectiveApplication"
"$ref": "#/definitions/evening_detectiveApplication"
}
}
}
@@ -569,6 +569,38 @@
"evening_detectiveGiveApplicationsRsp": {
"type": "object"
},
"evening_detectiveGraphApplication": {
"type": "object",
"properties": {
"name": {
"type": "string"
}
}
},
"evening_detectiveGraphNode": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int32"
},
"label": {
"type": "string"
},
"name": {
"type": "string"
},
"text": {
"type": "string"
},
"applications": {
"type": "array",
"items": {
"$ref": "#/definitions/evening_detectiveGraphApplication"
}
}
}
},
"evening_detectivePingRsp": {
"type": "object"
},
@@ -603,7 +635,7 @@
"applications": {
"type": "array",
"items": {
"$ref": "#/definitions/crabsevening_detectiveApplication"
"$ref": "#/definitions/evening_detectiveApplication"
}
}
}
@@ -623,6 +655,17 @@
}
}
},
"evening_detectiveUpdateNodeReq": {
"type": "object",
"properties": {
"node": {
"$ref": "#/definitions/evening_detectiveGraphNode"
}
}
},
"evening_detectiveUpdateNodeRsp": {
"type": "object"
},
"protobufAny": {
"type": "object",
"properties": {