Difference between swagger and loopback for Rest API

旧时模样 提交于 2019-12-10 12:37:30

问题


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.


回答1:


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 is a framework that helps you actually write the REST services themselves.




回答2:


Swagger is a powerful open source framework backed by a large ecosystem of tools that helps you design, build, document, and consume your RESTful APIs

You can use the editor , to build the REST specification, without coding, then you use the Swagger generator to convert this human readable file, into real code on more than 10 languages, you can auto generate server and clients.



来源:https://stackoverflow.com/questions/34290588/difference-between-swagger-and-loopback-for-rest-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!