refactor: return full HTTP response for binary response bodies (#112)
This commit is contained in:
@ -54,7 +54,7 @@ paths:
|
||||
/tasks/{taskID}/runs/{runID}/logs:
|
||||
$ref: "./openapi/src/common/paths/tasks_taskID_runs_runID_logs.yml"
|
||||
/backup/metadata:
|
||||
$ref: "./openapi/src/oss/paths/backup_metadata.yml"
|
||||
$ref: "./overrides/paths/backup_metadata.yml"
|
||||
/backup/shards/{shardID}:
|
||||
$ref: "./openapi/src/oss/paths/backup_shards_shardID.yml"
|
||||
/restore/kv:
|
||||
|
Submodule api/contract/openapi updated: ebb70c5c53...f5b7af45fc
40
api/contract/overrides/paths/backup_metadata.yml
Normal file
40
api/contract/overrides/paths/backup_metadata.yml
Normal file
@ -0,0 +1,40 @@
|
||||
get:
|
||||
operationId: GetBackupMetadata
|
||||
tags:
|
||||
- Backup
|
||||
summary: Download snapshot of all metadata in the server
|
||||
parameters:
|
||||
- $ref: "../../openapi/src/common/parameters/TraceSpan.yml"
|
||||
- in: header
|
||||
name: Accept-Encoding
|
||||
description: The Accept-Encoding request HTTP header advertises which content encoding, usually a compression algorithm, the client is able to understand.
|
||||
schema:
|
||||
type: string
|
||||
description: Specifies that the query response in the body should be encoded with gzip or not encoded with identity.
|
||||
default: identity
|
||||
enum:
|
||||
- gzip
|
||||
- identity
|
||||
responses:
|
||||
"200":
|
||||
description: Snapshot of metadata
|
||||
headers:
|
||||
Content-Encoding:
|
||||
description: The Content-Encoding entity header is used to compress the media-type. When present, its value indicates which encodings were applied to the entity-body
|
||||
schema:
|
||||
type: string
|
||||
description: Specifies that the response in the body is encoded with gzip or not encoded with identity.
|
||||
default: identity
|
||||
enum:
|
||||
- gzip
|
||||
- identity
|
||||
content:
|
||||
multipart/mixed:
|
||||
schema:
|
||||
# NOTE: This has a proper schema in the `openapi` repo, but our codegen isn't smart enough to handle
|
||||
# multipart responses. Pretend it's a binary string here so we can decode the body ourselves.
|
||||
type: string
|
||||
format: binary
|
||||
default:
|
||||
description: Unexpected error
|
||||
$ref: '../../openapi/src/common/responses/ServerError.yml'
|
Reference in New Issue
Block a user