我正在使用 Swagger 2.0 为 http API 编写规范。
如何将Accept-Language标头定义为路径的必需标头参数?
/aPath:
post:
parameters:
- in: header
name: Accept-Language
type: string
enum: [de, en, es]
required: true
responses:
200:
description: The Best
schema:
type: string
如何使用关键字produces 来定义Accept-Language 标头?