ApiBlueprints 参数产生类似 Stripe 错误的结果 "attributes"?

ApiBlueprints parameter that yield result like Stripe's errors "attributes"?

我是 Stripe 的新手,我想生成一个看起来像错误部分的 "Attributes" 部分的结果:https://stripe.com/docs/api/curl#errors

它看起来像一个有两列的 table,尽管它不是 table。

我不知道怎么做。

有关信息,我正在使用 Aglio 生成模板。

西里尔,

据我所知,在 Markdown 中没有简单的方法可以做到这一点。您有两个选择:

  1. 创建您自己的手动添加此信息的布局模板,然后告诉 aglio 使用它。

  2. 在您的 API 蓝图中包含一些基本的 HTML。 Here is an example. 它只是创建一个定义列表,该列表使用页面上已存在的相同 CSS 描述错误属性来描述 URI 参数。

    您可以使用 Markdown 创建响应类型和代码的表格,如果您想使用三列布局,您可以使用 middleright CSS 类.

希望对您有所帮助!