add graph

This commit is contained in:
2025-09-23 03:04:20 +07:00
parent 9b7241031c
commit c144123cff
10 changed files with 1071 additions and 1486 deletions
+67
View File
@@ -119,6 +119,28 @@
]
}
},
"/graph": {
"get": {
"operationId": "EveningDetective_GetGraph",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/evening_detectiveGetGraphRsp"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"tags": [
"EveningDetective"
]
}
},
"/ping": {
"get": {
"operationId": "EveningDetective_Ping",
@@ -310,6 +332,34 @@
}
},
"definitions": {
"GetGraphRspEdge": {
"type": "object",
"properties": {
"from": {
"type": "integer",
"format": "int32"
},
"to": {
"type": "integer",
"format": "int32"
},
"arrows": {
"type": "string"
}
}
},
"GetGraphRspNode": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int32"
},
"label": {
"type": "string"
}
}
},
"evening_detectiveAction": {
"type": "object",
"properties": {
@@ -423,6 +473,23 @@
}
}
},
"evening_detectiveGetGraphRsp": {
"type": "object",
"properties": {
"nodes": {
"type": "array",
"items": {
"$ref": "#/definitions/GetGraphRspNode"
}
},
"edges": {
"type": "array",
"items": {
"$ref": "#/definitions/GetGraphRspEdge"
}
}
}
},
"evening_detectiveGetTeamRsp": {
"type": "object",
"properties": {