0

我有一个 API 蓝图,它是这样的:

## Organization Users [/organizations/{id}/Users]

         + Parameters

            + id (string, required) - path variable, id of the organization.


some text was here.

### Get Org Users [GET]

some text was here.

+ Request (application/json)

当我用类似的东西运行 Aglio 时:

aglio --theme-variables streak  -i AppServices/Organizations.apib -o Build/AppServices.html

我得到如下输出: 没有路径变量

请注意,路径变量根本不存在。

其他事实:

  1. 生成输出时,aglio 未显示警告
  2. API 蓝图验证良好。
  3. 我尝试了 aglio 提供的所有主题,结果相同。
4

1 回答 1

0

Kyle Fuller ( https://github.com/kylef ) 回答了我关于 Aglio 的 github 问题的问题:

参数部分的意图不正确,因此显示为原始降价描述。

我想你想要这样的东西:

## Organization Users [/organizations/{id}/Users]

+ Parameters
    + id (string, required) - path variable, id of the organization.

some text was here.

### Get Org Users [GET]

some text was here.

+ Request (application/json)
于 2017-04-04T05:32:35.603 回答