Skip to content

Command line for printing swagger.json #1783

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions