mirror of
https://github.com/openziti/ziti.git
synced 2026-10-12 15:28:05 +00:00
b562fb5c07
- splits Open API 2.0 (swagger) into client/management APIs - uses go-swaggers flatten capabilities - uses newer version of go-swagger (v0.27.0) - introduces /edge/client/v1, /edge/management/v1 - non-prefixed URLs default to /edge/client/v1 - splits some shared management/client API handlers - renames some REST models to "client" instead of "limited" - passes all apitests, fails dataflow upd test (main fails this as well) - updates generate rest script for powershell - todo: test generate rest script for bash - todo: use xweb (different branch)
88 lines
1.7 KiB
YAML
88 lines
1.7 KiB
YAML
---
|
|
paths:
|
|
root:
|
|
get:
|
|
summary: Returns version information
|
|
security: [ ]
|
|
tags:
|
|
- Informational
|
|
operationId: listRoot
|
|
responses:
|
|
'200':
|
|
$ref: '#/responses/listVersion'
|
|
version:
|
|
get:
|
|
summary: Returns version information
|
|
security: [ ]
|
|
tags:
|
|
- Informational
|
|
operationId: listVersion
|
|
responses:
|
|
'200':
|
|
$ref: '#/responses/listVersion'
|
|
responses:
|
|
listVersion:
|
|
description: Version information for the controller
|
|
schema:
|
|
$ref: '#/definitions/listVersionEnvelope'
|
|
|
|
definitions:
|
|
listVersionEnvelope:
|
|
type: object
|
|
required:
|
|
- meta
|
|
- data
|
|
properties:
|
|
meta:
|
|
$ref: 'standard-responses.yml#/definitions/meta'
|
|
data:
|
|
$ref: '#/definitions/version'
|
|
version:
|
|
type: object
|
|
properties:
|
|
buildDate:
|
|
type: string
|
|
example: '2020-02-11 16:09:08'
|
|
revision:
|
|
type: string
|
|
example: 'ea556fc18740'
|
|
runtimeVersion:
|
|
type: string
|
|
example: 'go1.13.5'
|
|
version:
|
|
type: string
|
|
example: 'v0.9.0'
|
|
apiVersions:
|
|
type: object
|
|
additionalProperties:
|
|
type: object
|
|
additionalProperties:
|
|
$ref: '#/definitions/apiVersion'
|
|
apiVersion:
|
|
type: object
|
|
required:
|
|
- path
|
|
properties:
|
|
version:
|
|
type: string
|
|
path:
|
|
type: string
|
|
versionInfo:
|
|
type: object
|
|
required:
|
|
- os
|
|
- version
|
|
- arch
|
|
- buildDate
|
|
- revision
|
|
properties:
|
|
os:
|
|
type: string
|
|
version:
|
|
type: string
|
|
arch:
|
|
type: string
|
|
buildDate:
|
|
type: string
|
|
revision:
|
|
type: string |