generated from VLADIMIR/template
280 lines
6.2 KiB
JSON
280 lines
6.2 KiB
JSON
{
|
|
"swagger": "2.0",
|
|
"info": {
|
|
"title": "main.proto",
|
|
"version": "version not set"
|
|
},
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"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"
|
|
]
|
|
}
|
|
},
|
|
"/ping": {
|
|
"get": {
|
|
"operationId": "EveningDetective_Ping",
|
|
"responses": {
|
|
"200": {
|
|
"description": "A successful response.",
|
|
"schema": {
|
|
"$ref": "#/definitions/evening_detectivePingRsp"
|
|
}
|
|
},
|
|
"default": {
|
|
"description": "An unexpected error response.",
|
|
"schema": {
|
|
"$ref": "#/definitions/runtimeError"
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"EveningDetective"
|
|
]
|
|
}
|
|
},
|
|
"/teams": {
|
|
"get": {
|
|
"operationId": "EveningDetective_GetTeams",
|
|
"responses": {
|
|
"200": {
|
|
"description": "A successful response.",
|
|
"schema": {
|
|
"$ref": "#/definitions/evening_detectiveGetTeamsRsp"
|
|
}
|
|
},
|
|
"default": {
|
|
"description": "An unexpected error response.",
|
|
"schema": {
|
|
"$ref": "#/definitions/runtimeError"
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"EveningDetective"
|
|
]
|
|
},
|
|
"delete": {
|
|
"operationId": "EveningDetective_DeleteTeams",
|
|
"responses": {
|
|
"200": {
|
|
"description": "A successful response.",
|
|
"schema": {
|
|
"$ref": "#/definitions/evening_detectiveDeleteTeamsRsp"
|
|
}
|
|
},
|
|
"default": {
|
|
"description": "An unexpected error response.",
|
|
"schema": {
|
|
"$ref": "#/definitions/runtimeError"
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"EveningDetective"
|
|
]
|
|
},
|
|
"post": {
|
|
"operationId": "EveningDetective_AddTeams",
|
|
"responses": {
|
|
"200": {
|
|
"description": "A successful response.",
|
|
"schema": {
|
|
"$ref": "#/definitions/evening_detectiveAddTeamsRsp"
|
|
}
|
|
},
|
|
"default": {
|
|
"description": "An unexpected error response.",
|
|
"schema": {
|
|
"$ref": "#/definitions/runtimeError"
|
|
}
|
|
}
|
|
},
|
|
"parameters": [
|
|
{
|
|
"name": "body",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/evening_detectiveAddTeamsReq"
|
|
}
|
|
}
|
|
],
|
|
"tags": [
|
|
"EveningDetective"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"definitions": {
|
|
"evening_detectiveAddActionRsp": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"format": "int64"
|
|
},
|
|
"to": {
|
|
"type": "string"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"applications": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/evening_detectiveApplication"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"evening_detectiveAddTeamsReq": {
|
|
"type": "object",
|
|
"properties": {
|
|
"teams": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/evening_detectiveTeam"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"evening_detectiveAddTeamsRsp": {
|
|
"type": "object",
|
|
"properties": {
|
|
"teams": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/evening_detectiveTeamFull"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"evening_detectiveApplication": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"evening_detectiveDeleteTeamsRsp": {
|
|
"type": "object"
|
|
},
|
|
"evening_detectiveGetTeamsRsp": {
|
|
"type": "object",
|
|
"properties": {
|
|
"teams": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/evening_detectiveTeamAdvanced"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"evening_detectivePingRsp": {
|
|
"type": "object"
|
|
},
|
|
"evening_detectiveTeam": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"evening_detectiveTeamAdvanced": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"format": "int64"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"spendTime": {
|
|
"type": "string",
|
|
"format": "int64"
|
|
},
|
|
"applications": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/evening_detectiveApplication"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"evening_detectiveTeamFull": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"format": "int64"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"password": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"protobufAny": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type_url": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string",
|
|
"format": "byte"
|
|
}
|
|
}
|
|
},
|
|
"runtimeError": {
|
|
"type": "object",
|
|
"properties": {
|
|
"error": {
|
|
"type": "string"
|
|
},
|
|
"code": {
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/protobufAny"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|