Skip to content

Command line for printing swagger.json #1783

@ritch

Description

@ritch

As a LoopBack dev, I should be able to export my api def as swagger, so that I do not have to run my app and curl http://localhost:3000/explorer/swagger.json.

$ slc loopback:export-api-definition

By default it should output the swagger document as yaml.

It should take a couple opts.

$ slc loopback:export-api-definition --json

That would output JSON instead of yaml.

Also, I should be able to use the output of the api-def tool as the input of another tool.

slc loopback:api-definition | apim publish-api-definition

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions