-1

I have an API who is generarted using loopback / strongloop and its running as follows.

enter image description here

and i want to export the the generated api into yaml or json so that i want to reuse it in another application. i m looking for swagger.json file.

SO in sawgger you get your json from your running api by going to localhost:3300/api-docs. How do i get it from here ?

Community
  • 1
  • 1
Develop4Life
  • 7,581
  • 8
  • 58
  • 76

2 Answers2

1

You can do that with

localhost:3300/explorer/resources to get a list of all resources and localhost:3300/explorer/resource/ModelPluralName to get swagger for specific resource.

Also you can click on "Raw" link in your API explorer.

*Assuming of course that your application is running on localhost port 3300.

A.Z.
  • 1,638
  • 2
  • 18
  • 27
0

you can do that simply by typing

localhost:3300/explorer/swagger.json , you need to download the json file and load that into editor.swagger.io using file import then download it as YAML to feed into your restAPi ppliaction.

Develop4Life
  • 7,581
  • 8
  • 58
  • 76