首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >未显示Aglio蓝图路径变量

未显示Aglio蓝图路径变量
EN

Stack Overflow用户
提问于 2017-03-29 04:42:40
回答 1查看 356关注 0票数 0

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

代码语言:javascript
复制
## 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)

当我用类似于:

代码语言:javascript
复制
aglio --theme-variables streak  -i AppServices/Organizations.apib -o Build/AppServices.html

我得到的输出如下:

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

其他事实:

  1. 生成输出时,aglio没有显示警告。
  2. API蓝图验证得很好。
  3. 我试过了阿格里奥必须提供的所有主题,同样的结果。
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-04-04 05:32:35

凯尔·富勒(https://github.com/kylef)回答了我关于Aglio's github问题的问题:

参数部分的意图是错误的,因此显示为原始的标记描述。

我想你想要的是:

代码语言:javascript
复制
## 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)
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/43084514

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档