mirror of
https://github.com/apache/superset.git
synced 2024-09-06 13:57:40 -04:00
fix: OpenAPI docs small fixes (#19936)
This commit is contained in:
parent
8b72354654
commit
5dd3ea154b
@ -516,14 +516,12 @@ class ChartRestApi(BaseSupersetModelRestApi):
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/screenshot_query_schema'
|
$ref: '#/components/schemas/screenshot_query_schema'
|
||||||
responses:
|
responses:
|
||||||
200:
|
202:
|
||||||
description: Chart async result
|
description: Chart async result
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/ChartCacheScreenshotResponseSchema"
|
$ref: "#/components/schemas/ChartCacheScreenshotResponseSchema"
|
||||||
302:
|
|
||||||
description: Redirects to the current digest
|
|
||||||
400:
|
400:
|
||||||
$ref: '#/components/responses/400'
|
$ref: '#/components/responses/400'
|
||||||
401:
|
401:
|
||||||
@ -596,8 +594,6 @@ class ChartRestApi(BaseSupersetModelRestApi):
|
|||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
format: binary
|
format: binary
|
||||||
302:
|
|
||||||
description: Redirects to the current digest
|
|
||||||
400:
|
400:
|
||||||
$ref: '#/components/responses/400'
|
$ref: '#/components/responses/400'
|
||||||
401:
|
401:
|
||||||
|
@ -853,6 +853,8 @@ class DashboardRestApi(BaseSupersetModelRestApi):
|
|||||||
properties:
|
properties:
|
||||||
message:
|
message:
|
||||||
type: string
|
type: string
|
||||||
|
302:
|
||||||
|
description: Redirects to the current digest
|
||||||
401:
|
401:
|
||||||
$ref: '#/components/responses/401'
|
$ref: '#/components/responses/401'
|
||||||
404:
|
404:
|
||||||
|
@ -236,8 +236,6 @@ class DatabaseRestApi(BaseSupersetModelRestApi):
|
|||||||
type: number
|
type: number
|
||||||
result:
|
result:
|
||||||
$ref: '#/components/schemas/{{self.__class__.__name__}}.post'
|
$ref: '#/components/schemas/{{self.__class__.__name__}}.post'
|
||||||
302:
|
|
||||||
description: Redirects to the current digest
|
|
||||||
400:
|
400:
|
||||||
$ref: '#/components/responses/400'
|
$ref: '#/components/responses/400'
|
||||||
401:
|
401:
|
||||||
@ -659,7 +657,6 @@ class DatabaseRestApi(BaseSupersetModelRestApi):
|
|||||||
schema:
|
schema:
|
||||||
type: integer
|
type: integer
|
||||||
responses:
|
responses:
|
||||||
200:
|
|
||||||
200:
|
200:
|
||||||
description: Query result
|
description: Query result
|
||||||
content:
|
content:
|
||||||
|
@ -91,6 +91,8 @@ class EmbeddedDashboardRestApi(BaseSupersetModelRestApi):
|
|||||||
result:
|
result:
|
||||||
$ref: '#/components/schemas/EmbeddedDashboardResponseSchema'
|
$ref: '#/components/schemas/EmbeddedDashboardResponseSchema'
|
||||||
401:
|
401:
|
||||||
|
$ref: '#/components/responses/401'
|
||||||
|
404:
|
||||||
$ref: '#/components/responses/404'
|
$ref: '#/components/responses/404'
|
||||||
500:
|
500:
|
||||||
$ref: '#/components/responses/500'
|
$ref: '#/components/responses/500'
|
||||||
|
@ -64,8 +64,6 @@ class ImportExportRestApi(BaseApi):
|
|||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
format: binary
|
format: binary
|
||||||
400:
|
|
||||||
$ref: '#/components/responses/400'
|
|
||||||
401:
|
401:
|
||||||
$ref: '#/components/responses/401'
|
$ref: '#/components/responses/401'
|
||||||
404:
|
404:
|
||||||
|
@ -310,6 +310,8 @@ class ReportScheduleRestApi(BaseSupersetModelRestApi):
|
|||||||
$ref: '#/components/responses/401'
|
$ref: '#/components/responses/401'
|
||||||
404:
|
404:
|
||||||
$ref: '#/components/responses/404'
|
$ref: '#/components/responses/404'
|
||||||
|
422:
|
||||||
|
$ref: '#/components/responses/422'
|
||||||
500:
|
500:
|
||||||
$ref: '#/components/responses/500'
|
$ref: '#/components/responses/500'
|
||||||
"""
|
"""
|
||||||
@ -379,6 +381,8 @@ class ReportScheduleRestApi(BaseSupersetModelRestApi):
|
|||||||
$ref: '#/components/responses/403'
|
$ref: '#/components/responses/403'
|
||||||
404:
|
404:
|
||||||
$ref: '#/components/responses/404'
|
$ref: '#/components/responses/404'
|
||||||
|
422:
|
||||||
|
$ref: '#/components/responses/422'
|
||||||
500:
|
500:
|
||||||
$ref: '#/components/responses/500'
|
$ref: '#/components/responses/500'
|
||||||
"""
|
"""
|
||||||
|
@ -140,6 +140,8 @@ class SecurityRestApi(BaseApi):
|
|||||||
type: string
|
type: string
|
||||||
401:
|
401:
|
||||||
$ref: '#/components/responses/401'
|
$ref: '#/components/responses/401'
|
||||||
|
400:
|
||||||
|
$ref: '#/components/responses/400'
|
||||||
500:
|
500:
|
||||||
$ref: '#/components/responses/500'
|
$ref: '#/components/responses/500'
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user