I’ve been asked about Swagger and LoopBack at a few conferences, and my answer has been: “I know LoopBack supports creating Swagger docs, but I’m not sure of the exact syntax.” Now that I’ve gotten a bit of a break from the conference scene, I thought I’d quickly document how easy this is to do with LoopBack. Before we begin though, what in the heck is Swagger?
The method of delivering content to a browser has continued to evolve over the years. In the early days, every page was a full payload. If you clicked a link, you got a new page. If you hit the back button, you were delivered a new full page.
To make it easier to contribute to the LoopBack project, we‘ve centralized and opened up the general coding guidelines we’ve been using internally at loopback-contributor-docs. We hope this will help clear up any ambiguity about what we expect and improve turnaround times for landing pull requests from community members.
Compose APIs, Build, Deploy and Monitor Node
Install API Connect
$ npm install -g apiconnect
Create your API Connect project
$ apic loopback
Launch API Designer
$ cd your-project
$ apic edit
API Designer will run on your local browser
An IBM BlueMix account is required to use the Designer. Register for IBM Bluemix