Page Contents
Important:
Before running this generator, you must create an application using the application generator.
Then you must run the command from the root directory of the application.
Use:
$ apic loopback:refresh
Creates or re-creates product and an API definition files from the LoopBack application models.
The generator creates or re-creates two files in the definitions
directory:
<project-name>.yaml
- API definition in OpenAPI 2.0 (Swagger) format.<project-name>-product.yaml
- Product definition file in YAML format. See the API Connect documentation for an example.
Where <project-name>
is the name of the project (app).