feat: add stacks APIs to codegen (#163)
This commit is contained in:
64
api/contract/overrides/paths/stacks.yml
Normal file
64
api/contract/overrides/paths/stacks.yml
Normal file
@ -0,0 +1,64 @@
|
||||
get:
|
||||
operationId: ListStacks
|
||||
tags:
|
||||
- Stacks
|
||||
summary: List all installed InfluxDB templates
|
||||
parameters:
|
||||
- in: query
|
||||
name: orgID
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
description: The organization id of the stacks
|
||||
- in: query
|
||||
name: name
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
description: A collection of names to filter the list by.
|
||||
- in: query
|
||||
name: stackID
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
description: A collection of stackIDs to filter the list by.
|
||||
responses:
|
||||
"200":
|
||||
description: Influx stacks found
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "../schemas/Stacks.yml"
|
||||
default:
|
||||
description: Unexpected error
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "../../openapi/src/common/schemas/Error.yml"
|
||||
post:
|
||||
operationId: CreateStack
|
||||
tags:
|
||||
- Stacks
|
||||
summary: Create a new stack
|
||||
requestBody:
|
||||
description: Stack to create.
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "../schemas/StackPostRequest.yml"
|
||||
responses:
|
||||
"201":
|
||||
description: InfluxDB Stack created
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "../schemas/Stack.yml"
|
||||
default:
|
||||
description: Unexpected error
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "../../openapi/src/common/schemas/Error.yml"
|
84
api/contract/overrides/paths/stacks_stack_id.yml
Normal file
84
api/contract/overrides/paths/stacks_stack_id.yml
Normal file
@ -0,0 +1,84 @@
|
||||
get:
|
||||
operationId: ReadStack
|
||||
tags:
|
||||
- Stacks
|
||||
summary: Retrieve a stack
|
||||
parameters:
|
||||
- in: path
|
||||
name: stack_id
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
description: Theidentifier of the stack.
|
||||
responses:
|
||||
"200":
|
||||
description: The InfluxDB stack
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "../schemas/Stack.yml"
|
||||
default:
|
||||
description: Unexpected error
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "../../openapi/src/common/schemas/Error.yml"
|
||||
patch:
|
||||
operationId: UpdateStack
|
||||
tags:
|
||||
- Stacks
|
||||
summary: Update an InfluxDB Stack
|
||||
parameters:
|
||||
- in: path
|
||||
name: stack_id
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
description: Theidentifier of the stack.
|
||||
requestBody:
|
||||
description: Influx stack to update.
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "../schemas/StackPatchRequest.yml"
|
||||
responses:
|
||||
"200":
|
||||
description: Influx stack updated
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "../schemas/Stack.yml"
|
||||
default:
|
||||
description: Unexpected error
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "../../openapi/src/common/schemas/Error.yml"
|
||||
delete:
|
||||
operationId: DeleteStack
|
||||
tags:
|
||||
- Stacks
|
||||
summary: Delete a stack and associated resources
|
||||
parameters:
|
||||
- in: path
|
||||
name: stack_id
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
description: Theidentifier of the stack.
|
||||
- in: query
|
||||
name: orgID
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
description: The identifier of the organization.
|
||||
responses:
|
||||
"204":
|
||||
description: The stack and its associated resources are deleted
|
||||
default:
|
||||
description: Unexpected error
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "../../openapi/src/common/schemas/Error.yml"
|
Reference in New Issue
Block a user