如何在 Angular 应用程序中添加Swagger UI ?
我已经多次搜索这个问题,发现只有一个解决方案,并且它是使用swagger-ui-dist包完成的,但在最新版本中https://www.npmjs.com/package/swagger-ui告诉我们使用swagger-ui而不是swagger-ui-dist单页应用程序。
有一个解决方案是添加这个包来进行反应,并且解释得很好。
Swagger-UI 与 React - https://swagger.io/blog/api-documentation/building-documentation-portal-swagger-tutorial/