anivas
anivas

Reputation: 6547

Difference between swagger and loopback for Rest API

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.

Upvotes: 12

Views: 4911

Answers (2)

jamesjara
jamesjara

Reputation: 554

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.

Upvotes: 7

Eric Galluzzo
Eric Galluzzo

Reputation: 3241

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.

Upvotes: 8

Related Questions