The difference between swagger and a loop for the Rest API

Swagger helps in creating Restful Api, I get it. Wherever you use LoopBack , this is another tool for creating Rest api. LoopBack has swagger 2.0 support. I am confused here whether they can be used interchangeably.

+5
source share
2 answers

Swagger is a documentation framework. If you attach the appropriate annotations to your code, it creates a β€œlive” documentation site that allows users to visually view all your REST services, including their request and response formats, with the ability to make selective calls.

Loopback is a framework that helps you actually write REST services.

+6
source

Swagger is a powerful open source environment supported by a large ecosystem of tools that helps you create, create, document, and consume your RESTful APIs.

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

+2
source

Source: https://habr.com/ru/post/1238268/


All Articles