
* basic list, create, and invoke working * all commands working * added support for create script body from file and invoke params from file * linter cleanup * update defaults to existing parameters if not provided * updated generated mock files, added mock files for scripts, added basic script create test * added mock script list * cleanup pass, fixed not using params in list call * added update mock test * fixed mock tests requiring go 1.18 * updated openapi, integrated overrides upstream, added new override to fix codegen bug * added nil check * fixed routes
28 lines
815 B
YAML
28 lines
815 B
YAML
post:
|
|
operationId: PostScriptsIDInvoke
|
|
tags:
|
|
- Invokable Scripts
|
|
summary: Invoke a script
|
|
description: Invokes a script and substitutes `params` keys referenced in the script with `params` key-values sent in the request body.
|
|
parameters:
|
|
- in: path
|
|
name: scriptID
|
|
schema:
|
|
type: string
|
|
required: true
|
|
requestBody:
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '../schemas/ScriptInvocationParams.yml'
|
|
responses:
|
|
'200':
|
|
description: The result of the script execution.
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '../../openapi/src/svc/invocable-scripts/schemas/ScriptHTTPResponseData.yml'
|
|
default:
|
|
description: Unexpected error
|
|
$ref: '../../openapi/src/common/responses/ServerError.yml'
|