Swagger-ui锚链接到模型定义

12

是否可以通过锚点直接从swagger-ui访问模型定义?

在示例页面http://petstore.swagger.io/中,我看到锚点适用于一组端点,例如 http://petstore.swagger.io/#/pet

将鼠标悬停在模型描述上会显示一个锚点 (例如Category模型的#/definitions/Category),但是 http://petstore.swagger.io/#/definitions/Category并不能将我带到那里。

如果我检查元素,就会看到指向pet锚点的实际链接:

<a class="nostyle" href="#/pet"><span>pet</span></a>

而对于Category,这是一个模型提示:

<span class="model-hint">#/definitions/Category</span>

所以我想知道是否支持模型定位。

1个回答

3

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接