feat: add stacks APIs to codegen (#163)

This commit is contained in:
Daniel Moran
2021-06-30 14:47:35 -04:00
committed by GitHub
parent a3f36a9821
commit aaf99da0a9
22 changed files with 2820 additions and 0 deletions

View 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"

View 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"