我已按照以下说明在Windows 7中安装了SwaggerUI: https://thinkinginsoa.wordpress.com/2017/01/18/installing-running-swagger-editor-locally-windows/
我正在尝试创建此“注释”示例: https://www.youtube.com/watch?v=PbwQWw7xSOM&t=741s
当我修改 DefaultService.js 文件以执行以下操作时:
exports.getAllNotes = function()
{
return new Promise(function(resolve, reject)
{
resolve('SomeTextToReturn');
});
}
然后像这样停止并重新启动我的NodeJS服务器:
C:\Users\username\AppData\Roaming\npm\node_modules\http-server>http-server
nodejs-notes -0
Starting up http-server, serving nodejs-notes
Available on:
http://172.16.79.1:8081
http://127.0.0.1:8081
Hit CTRL-C to stop the server
我没有看到原始的SwaggerUI网页,而是看到了以下内容:
如何获取对生成的javascript文件所做的任何修改?