apiconnect-cli-loopback
Version:
Plugin for IBM API Connect Developer Toolkit
28 lines (24 loc) • 1.08 kB
Plain Text
Usage: apic {{create --type model}} OPTIONS [NAME]
Create a {{LoopBack}} model definition in a {{LoopBack}} application
Options
--{{skip-cache}} do not remember prompt answers
Create a {{LoopBack}} application model
{{$ apic create --type model}}
? Enter the model name: {{Route}}
? Select the datasource to attach {{Route}} to: db (memory)
? Select model's base class PersistedModel
? Expose {{Route}} via the {{REST API}}? Yes
? Custom plural form (used to build {{REST URL}}): {{routes}}
? Common model or server only? common
Let's add some {{Route}} properties now.
Enter an empty property name when done.
? Property name: {{id}}
invoke {{loopback:property}}
? Property type: string
? Required? No
Let's add another {{Route}} property.
Enter an empty property name when done.
? Property name:
Done running {{loopback}} generator
Updating {{swagger}} and product definitions
Created {{/Users/shane/mesh/examples/climbon/definitions/climbon.yaml swagger}} description