【问题标题】:How do you specify request body attributes in Apiary.io / API Blueprint?如何在 Apiary.io / API Blueprint 中指定请求正文属性?
【发布时间】:2015-02-24 08:27:25
【问题描述】:

我试图弄清楚如何描述/定义 POST/PUT 的请求正文属性/参数。这是我正在尝试做的一个示例,但我在文档中的任何地方都找不到它(我希望有一种方法可以查看任何公共 Apiary 文档的降价):http://docs.bynder.apiary.io/#reference/metaproperties/metaproperty-access/save-new-metaproperty

查看“请求”部分下的描述和属性定义?我该怎么做?

【问题讨论】:

  • 当我点击标题中的API Blueprint 时,我会在新标签中看到this
  • 我怎么会错过这个...谢谢!

标签: markdown apiblueprint apiary.io


【解决方案1】:

以下是他们可能是如何做到的。请查看https://github.com/apiaryio/api-blueprint 的 API 蓝图规范以了解更多信息。

+ Request (application/json)

    You can have any description here. This is based on markdown.

    + Even a list
    + `name` Name of the metaproperty, should be alphanumeric only. Uneditable.

    + Body

            {
              "name": "app"
            }

【讨论】:

  • 谢谢。就个人而言,我发现 API 蓝图规范/文档非常不直观。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-03-06
  • 1970-01-01
  • 1970-01-01
  • 2017-03-29
  • 2021-04-23
相关资源
最近更新 更多