【问题标题】:What does in:"query" mean when describing parameters in swagger for apigee127?在 apigee127 的 swagger 中描述参数时,in:"query" 是什么意思?
【发布时间】:2016-05-11 05:18:33
【问题描述】:

我是制作 API 的新手,我最近安装了 apigee 127 来使用 swagger 制作 API。但是有几件事我不明白。我正在通过一个示例如下(与问题相关):

parameters:
    -
      name: "name"
      in: "query"
      description: "The name of the person to whom to say hello"
      required: false
      type: "string"

是什么

in: "query"

在上述 YAML 数据中是什么意思?请建议阅读哪些文档以更好地理解上述内容。

【问题讨论】:

    标签: yaml swagger apigee127


    【解决方案1】:

    in : "query" 指定参数“名称”是查询参数。换句话说,给定的 API 将接受名称查询参数。

    更多细节可以参考YAML规范-

    http://yaml.org/spec/1.2/spec.html

    与/或

    http://swagger.io/specification/#parameterObject
    http://swagger.io/specification/#parameterIn

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-11-24
      • 2016-12-24
      • 2010-09-22
      • 2023-02-14
      相关资源
      最近更新 更多