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

FlagDescription
--api-aAPI slug.
--resourceOnly promote the defined operations of this resource.
--operationOnly promote this defined operation.

Examples

craftr spec promote -a timers
craftr spec promote -a timers --resource Timers
craftr spec promote -a timers --operation Timers/create

See also