Rest API的浮动和环回之间的区别 [英] Difference between swagger and loopback for Rest API
问题描述
Swagger 有助于创建Restful Api,我明白了.您将在哪里使用 LoopBack ,这是用于创建Rest api的另一个工具. LoopBack支持swagger 2.0.我在这里很困惑,可以互换使用它们吗.
Swagger helps in creating Restful Api, I get that. Where would you use LoopBack, is this another tool for creating Rest api. LoopBack has support swagger 2.0. I am confused here, can they be used interchangeably.
推荐答案
Swagger是一个文档框架.如果在代码上附加了适当的注释,它将生成一个实时"文档站点,该站点使用户能够以可视方式查看所有REST服务,包括他们的请求和响应格式,并能够执行示例调用.
Swagger is a documentation framework. If you attach the appropriate annotations to your code, it produces a "live" documentation site that lets users see all your REST services in a visual way, including their request and response formats, with the ability to execute sample calls.
Loopback是一个框架,可帮助您实际编写REST服务本身.
Loopback is a framework that helps you actually write the REST services themselves.
这篇关于Rest API的浮动和环回之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!