Aglio - API蓝图 - 路径变量未显示

时间:2017-03-29 04:42:40

标签: rest apiblueprint aglio

我有一个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

我得到的输出如下: No path variable

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

其他事实:

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

1 个答案:

答案 0 :(得分: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)