{ "swagger": "2.0", "info": { "title": "main.proto", "version": "version not set" }, "consumes": [ "application/json" ], "produces": [ "application/json" ], "paths": { "/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": { "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_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_detectivePingRsp": { "type": "object" }, "evening_detectiveTeam": { "type": "object", "properties": { "Name": { "type": "string" } } }, "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" } } } } } }