craftr schema define

Define a local operation that does not exist in the source spec. Creates the resource if new.

Usage

craftr schema define <resource> <name> --method <method> --path <path> --operation-id <id> [--api <api>]

Flags

FlagDescription
--methodrequiredHTTP method (GET, POST, …).
--pathrequiredOpenAPI path, e.g. /pet/{petId}/vaccinations.
--operation-idrequiredUnique operationId.
--api-aAPI slug.

See also