generated from VLADIMIR/template
add actions and auth
This commit is contained in:
+68
-56
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user