Grape-Swagger:路由参数问题

时间:2016-06-27 14:55:19

标签: ruby api documentation swagger grape

我正在使用grape-swagger在我使用Grape构建的Ruby API上显示文档。

我正在为我的端点上的所有参数添加描述,但我似乎无法找到有关如何向路由参数添加描述的任何内容。

我尝试了以下内容:

route_param :monitor_name, type: String, desc: 'The name of the monitor that is being retrieved.' do

route_param :monitor_name, type: String, description: 'The name of the monitor that is being retrieved.' do

但这些都不会在swagger UI上显示实际描述。

有什么想法吗? 谢谢你的帮助!

P.S。 (我在grape文档中找到的唯一内容显示在附加图像中)

enter image description here

0 个答案:

没有答案