我正在使用 rspec_api_documentation 和 apitome 生成API文档。当我看到 apitome 在浏览器中,有一个名为“模拟响应”的链接。当我单击此按钮时,会出现以下错误:
apitome
Missing template apitome/docs/simulate
“模拟响应”是做什么的,如何解决这个问题?
基于此 issue Rubygem已经过时几年了,所以使用最近的版本,例如
#Gemfile gem 'apitome', git: 'https://github.com/jejacks0n/apitome.git', ref: '8fbf5aa'
模拟响应显示了未格式化的响应体。