craftr spec promote
Write defined operations, with their parameters, request body and responses, into the API spec (spec.imported.json). The API then owns its spec: an upstream file or URL source is detached.
Usage
craftr spec promote [--api <api>] [--resource <resource>] [--operation <resource/operation>]Flags
| Flag | Description |
|---|---|
--api-a | API slug. |
--resource | Only promote the defined operations of this resource. |
--operation | Only promote this defined operation. |
Examples
craftr spec promote -a timerscraftr spec promote -a timers --resource Timerscraftr spec promote -a timers --operation Timers/create