add actions and auth

This commit is contained in:
2025-05-17 12:08:44 +07:00
parent 4bd18ee756
commit e1b342d12c
14 changed files with 487 additions and 246 deletions
+68 -56
View File
@@ -11,28 +11,6 @@
"application/json"
],
"paths": {
"/actions": {
"post": {
"operationId": "EveningDetective_AddAction",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/evening_detectiveAddActionRsp"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"tags": [
"EveningDetective"
]
}
},
"/csv": {
"get": {
"operationId": "EveningDetective_GetTeamsCSV",
@@ -141,6 +119,60 @@
]
}
},
"/team": {
"get": {
"operationId": "EveningDetective_GetTeam",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/evening_detectiveGetTeamRsp"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"tags": [
"EveningDetective"
]
}
},
"/team/actions": {
"post": {
"operationId": "EveningDetective_AddAction",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/evening_detectiveAddActionRsp"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/evening_detectiveAddActionReq"
}
}
],
"tags": [
"EveningDetective"
]
}
},
"/teams": {
"get": {
"operationId": "EveningDetective_GetTeams",
@@ -213,37 +245,6 @@
]
}
},
"/teams/{id}": {
"get": {
"operationId": "EveningDetective_GetTeam",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/evening_detectiveGetTeamRsp"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string",
"format": "int64"
}
],
"tags": [
"EveningDetective"
]
}
},
"/teams/{teamId}/applications": {
"post": {
"operationId": "EveningDetective_GiveApplications",
@@ -285,14 +286,14 @@
}
},
"definitions": {
"evening_detectiveAddActionRsp": {
"evening_detectiveAction": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "int64"
},
"to": {
"place": {
"type": "string"
},
"text": {
@@ -306,6 +307,17 @@
}
}
},
"evening_detectiveAddActionReq": {
"type": "object",
"properties": {
"place": {
"type": "string"
}
}
},
"evening_detectiveAddActionRsp": {
"type": "object"
},
"evening_detectiveAddTeamsReq": {
"type": "object",
"properties": {
@@ -363,7 +375,7 @@
"actions": {
"type": "array",
"items": {
"$ref": "#/definitions/evening_detectiveAddActionRsp"
"$ref": "#/definitions/evening_detectiveAction"
}
}
}