Deploy Bots API #28
39
docs/docs.go
39
docs/docs.go
@@ -454,7 +454,7 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/time/{id}/download-url": {
|
||||
"/time/{id}/bot": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
@@ -462,9 +462,6 @@ const docTemplate = `{
|
||||
}
|
||||
],
|
||||
"description": "Get a download url for the bot replay of a time by its ID if it exists",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"times"
|
||||
],
|
||||
@@ -479,14 +476,17 @@ const docTemplate = `{
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/Response-BotDownloadUrl"
|
||||
"302": {
|
||||
"description": "Found",
|
||||
"headers": {
|
||||
"Location": {
|
||||
"type": "string",
|
||||
"description": "Redirect URL"
|
||||
}
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "Bot not found",
|
||||
"description": "Time does not have a Bot",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/Error"
|
||||
}
|
||||
@@ -667,14 +667,6 @@ const docTemplate = `{
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
"BotDownloadUrl": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"url": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Error": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -863,19 +855,6 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"Response-BotDownloadUrl": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"description": "Data contains the actual response payload",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/BotDownloadUrl"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"Response-Map": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
@@ -447,7 +447,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/time/{id}/download-url": {
|
||||
"/time/{id}/bot": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
@@ -455,9 +455,6 @@
|
||||
}
|
||||
],
|
||||
"description": "Get a download url for the bot replay of a time by its ID if it exists",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"times"
|
||||
],
|
||||
@@ -472,14 +469,17 @@
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/Response-BotDownloadUrl"
|
||||
"302": {
|
||||
"description": "Found",
|
||||
"headers": {
|
||||
"Location": {
|
||||
"type": "string",
|
||||
"description": "Redirect URL"
|
||||
}
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "Bot not found",
|
||||
"description": "Time does not have a Bot",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/Error"
|
||||
}
|
||||
@@ -660,14 +660,6 @@
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
"BotDownloadUrl": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"url": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Error": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -856,19 +848,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"Response-BotDownloadUrl": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"description": "Data contains the actual response payload",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/BotDownloadUrl"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"Response-Map": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
basePath: /api/v1
|
||||
definitions:
|
||||
BotDownloadUrl:
|
||||
properties:
|
||||
url:
|
||||
type: string
|
||||
type: object
|
||||
Error:
|
||||
properties:
|
||||
error:
|
||||
@@ -124,13 +119,6 @@ definitions:
|
||||
user:
|
||||
$ref: '#/definitions/User'
|
||||
type: object
|
||||
Response-BotDownloadUrl:
|
||||
properties:
|
||||
data:
|
||||
allOf:
|
||||
- $ref: '#/definitions/BotDownloadUrl'
|
||||
description: Data contains the actual response payload
|
||||
type: object
|
||||
Response-Map:
|
||||
properties:
|
||||
data:
|
||||
@@ -418,7 +406,7 @@ paths:
|
||||
summary: Get time by ID
|
||||
tags:
|
||||
- times
|
||||
/time/{id}/download-url:
|
||||
/time/{id}/bot:
|
||||
get:
|
||||
description: Get a download url for the bot replay of a time by its ID if it
|
||||
exists
|
||||
@@ -428,15 +416,15 @@ paths:
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/Response-BotDownloadUrl'
|
||||
"302":
|
||||
description: Found
|
||||
headers:
|
||||
Location:
|
||||
description: Redirect URL
|
||||
type: string
|
||||
"404":
|
||||
description: Bot not found
|
||||
description: Time does not have a Bot
|
||||
schema:
|
||||
$ref: '#/definitions/Error'
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user