oapi: root level routes
This commit is contained in:
+258
-13
@@ -3380,6 +3380,29 @@
|
||||
"welcome_channels"
|
||||
]
|
||||
},
|
||||
"Categories": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"localizations": {
|
||||
"type": "string"
|
||||
},
|
||||
"is_primary": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"is_primary",
|
||||
"localizations",
|
||||
"name"
|
||||
]
|
||||
},
|
||||
"GuildMessagesSearchMessage": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -5886,6 +5909,38 @@
|
||||
"$ref": "#/components/schemas/Webhook"
|
||||
}
|
||||
},
|
||||
"DiscoverableGuildsResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"total": {
|
||||
"type": "integer"
|
||||
},
|
||||
"guilds": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/Guild"
|
||||
}
|
||||
},
|
||||
"offset": {
|
||||
"type": "integer"
|
||||
},
|
||||
"limit": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"guilds",
|
||||
"limit",
|
||||
"offset",
|
||||
"total"
|
||||
]
|
||||
},
|
||||
"DiscoveryCategoriesResponse": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/Categories"
|
||||
}
|
||||
},
|
||||
"GatewayBotResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -6211,6 +6266,24 @@
|
||||
"purged"
|
||||
]
|
||||
},
|
||||
"GuildRecommendationsResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"recommended_guilds": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/Guild"
|
||||
}
|
||||
},
|
||||
"load_id": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"load_id",
|
||||
"recommended_guilds"
|
||||
]
|
||||
},
|
||||
"GuildResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -6404,6 +6477,79 @@
|
||||
"gateway"
|
||||
]
|
||||
},
|
||||
"InstancePingResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"ping": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"pong!"
|
||||
]
|
||||
},
|
||||
"instance": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": [
|
||||
"null",
|
||||
"string"
|
||||
]
|
||||
},
|
||||
"image": {
|
||||
"type": [
|
||||
"null",
|
||||
"string"
|
||||
]
|
||||
},
|
||||
"correspondenceEmail": {
|
||||
"type": [
|
||||
"null",
|
||||
"string"
|
||||
]
|
||||
},
|
||||
"correspondenceUserID": {
|
||||
"type": [
|
||||
"null",
|
||||
"string"
|
||||
]
|
||||
},
|
||||
"frontPage": {
|
||||
"type": [
|
||||
"null",
|
||||
"string"
|
||||
]
|
||||
},
|
||||
"tosPage": {
|
||||
"type": [
|
||||
"null",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"correspondenceEmail",
|
||||
"correspondenceUserID",
|
||||
"description",
|
||||
"frontPage",
|
||||
"id",
|
||||
"image",
|
||||
"name",
|
||||
"tosPage"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"instance",
|
||||
"ping"
|
||||
]
|
||||
},
|
||||
"InstanceStatsResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -6655,6 +6801,30 @@
|
||||
"token"
|
||||
]
|
||||
},
|
||||
"UpdatesResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"pub_date": {
|
||||
"type": "string"
|
||||
},
|
||||
"url": {
|
||||
"type": "string"
|
||||
},
|
||||
"notes": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"name",
|
||||
"notes",
|
||||
"pub_date",
|
||||
"url"
|
||||
]
|
||||
},
|
||||
"UserNoteResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -8436,8 +8606,35 @@
|
||||
"/updates/": {
|
||||
"get": {
|
||||
"responses": {
|
||||
"default": {
|
||||
"description": "No description available"
|
||||
"200": {
|
||||
"description": "",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/UpdatesResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/APIErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/APIErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
@@ -8595,8 +8792,18 @@
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"default": {
|
||||
"200": {
|
||||
"description": "No description available"
|
||||
},
|
||||
"403": {
|
||||
"description": "",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/APIErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
@@ -8683,7 +8890,7 @@
|
||||
"/science/": {
|
||||
"post": {
|
||||
"responses": {
|
||||
"default": {
|
||||
"204": {
|
||||
"description": "No description available"
|
||||
}
|
||||
},
|
||||
@@ -8840,8 +9047,15 @@
|
||||
"/ping/": {
|
||||
"get": {
|
||||
"responses": {
|
||||
"default": {
|
||||
"description": "No description available"
|
||||
"200": {
|
||||
"description": "",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/InstancePingResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
@@ -11204,8 +11418,15 @@
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"default": {
|
||||
"description": "No description available"
|
||||
"200": {
|
||||
"description": "",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/GuildRecommendationsResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
@@ -11393,8 +11614,18 @@
|
||||
"/download/": {
|
||||
"get": {
|
||||
"responses": {
|
||||
"default": {
|
||||
"302": {
|
||||
"description": "No description available"
|
||||
},
|
||||
"404": {
|
||||
"description": "",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/APIErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
@@ -11410,8 +11641,15 @@
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"default": {
|
||||
"description": "No description available"
|
||||
"200": {
|
||||
"description": "",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/DiscoveryCategoriesResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
@@ -11427,8 +11665,15 @@
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"default": {
|
||||
"description": "No description available"
|
||||
"200": {
|
||||
"description": "",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/DiscoverableGuildsResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
|
||||
+22183
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user