67 lines
1.4 KiB
YAML
67 lines
1.4 KiB
YAML
components:
|
|
parameters:
|
|
# 内容类型参数
|
|
ContentTypeHeader:
|
|
name: Content-Type
|
|
in: header
|
|
required: true
|
|
description: 内容类型
|
|
schema:
|
|
type: string
|
|
enum:
|
|
- "application/xml; charset=GBK"
|
|
- "application/json; charset=UTF-8"
|
|
default: "application/xml; charset=GBK"
|
|
|
|
# 加密类型参数
|
|
EncryptTypeHeader:
|
|
name: EncryptType
|
|
in: header
|
|
required: false
|
|
description: 加密类型
|
|
schema:
|
|
type: string
|
|
enum:
|
|
- "3DES"
|
|
- "SM2"
|
|
- "SM4"
|
|
example: "3DES"
|
|
|
|
# 加密模式参数
|
|
EncryptModeHeader:
|
|
name: EncryptMode
|
|
in: header
|
|
required: false
|
|
description: 加密模式
|
|
schema:
|
|
type: string
|
|
enum:
|
|
- "ECB"
|
|
- "CBC"
|
|
- "C1C3C2"
|
|
- "C1C2C3"
|
|
example: "ECB"
|
|
|
|
# 数据类型参数
|
|
DataTypeHeader:
|
|
name: DataType
|
|
in: header
|
|
required: false
|
|
description: 数据类型
|
|
schema:
|
|
type: string
|
|
enum:
|
|
- "XML"
|
|
- "JSON"
|
|
example: "XML"
|
|
|
|
# 版本号参数
|
|
VersionParam:
|
|
name: version
|
|
in: query
|
|
required: false
|
|
description: API版本号
|
|
schema:
|
|
type: string
|
|
default: "1.0.1"
|
|
example: "1.0.1" |