added beta-10 swagger

pull/1022/head
Scott Anderson 2020-05-07 15:58:04 -06:00
parent c696aa3ff8
commit bc08f1a133
1 changed files with 133 additions and 0 deletions

View File

@ -4375,6 +4375,84 @@ paths:
schema:
$ref: "#/components/schemas/Error"
/packages/stacks:
get:
operationId: ListStacks
tags:
- InfluxPackages
summary: Grab a list of installed Influx packages
parameters:
- in: query
name: orgID
required: true
schema:
type: string
description: The organization id of the stacks
- in: query
name: name
schema:
type: string
description: A collection of names to filter the list by.
- in: query
name: stackID
schema:
type: string
description: A collection of stackIDs to filter the list by.
responses:
'200':
description: Influx stacks found
content:
application/json:
schema:
type: array
items:
type: object
properties:
id:
type: string
orgID:
type: string
name:
type: string
description:
type: string
urls:
type: array
items:
type: string
createdAt:
type: string
format: date-time
readOnly: true
updatedAt:
type: string
format: date-time
readOnly: true
resources:
type: object
properties:
apiVersion:
type: string
resourceID:
type: string
kind:
type: string
pkgName:
type: string
associations:
type: array
items:
type: object
properties:
kind:
type: string
pkgName:
type: string
default:
description: Unexpected error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
post:
operationId: CreateStack
tags:
@ -4432,6 +4510,34 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/Error"
/packages/stacks/{stack_id}:
delete:
operationId: DeleteStack
tags:
- InfluxPackages
summary: Delete a stack and remove all its associated resources
parameters:
- in: path
name: stack_id
required: true
schema:
type: string
description: The stack id to be removed
- in: query
name: orgID
required: true
schema:
type: string
description: The organization id of the user
responses:
'204':
description: Stack and all its associated resources are deleted
default:
description: Unexpected error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
/tasks:
get:
operationId: GetTasks
@ -4936,6 +5042,27 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/Error"
/flags:
get:
operationId: GetFlags
tags:
- Users
summary: Return the feature flags for the currently authenticated user
parameters:
- $ref: '#/components/parameters/TraceSpan'
responses:
'200':
description: Feature flags for the currently authenticated user
content:
application/json:
schema:
$ref: "#/components/schemas/Flags"
default:
description: Unexpected error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
/me:
get:
operationId: GetMe
@ -8138,6 +8265,9 @@ components:
type: array
items:
$ref: "#/components/schemas/User"
Flags:
type: object
additionalProperties: true
ResourceMember:
allOf:
- $ref: "#/components/schemas/User"
@ -8223,6 +8353,9 @@ components:
me:
type: string
format: uri
flags:
type: string
format: uri
orgs:
type: string
format: uri