mirror of
https://github.com/openziti/zrok.git
synced 2025-01-03 04:29:19 +01:00
better spec organization (#50)
This commit is contained in:
parent
72e98beac9
commit
a6e203b28e
110
specs/zrok.yml
110
specs/zrok.yml
@ -12,9 +12,9 @@ securityDefinitions:
|
|||||||
name: x-token
|
name: x-token
|
||||||
|
|
||||||
paths:
|
paths:
|
||||||
#
|
#
|
||||||
# identity
|
# identity
|
||||||
#
|
#
|
||||||
/account:
|
/account:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
@ -105,23 +105,6 @@ paths:
|
|||||||
401:
|
401:
|
||||||
description: invalid login
|
description: invalid login
|
||||||
|
|
||||||
/overview:
|
|
||||||
get:
|
|
||||||
tags:
|
|
||||||
- metadata
|
|
||||||
security:
|
|
||||||
- key: []
|
|
||||||
operationId: overview
|
|
||||||
responses:
|
|
||||||
200:
|
|
||||||
description: overview returned
|
|
||||||
schema:
|
|
||||||
$ref: "#/definitions/environmentServicesList"
|
|
||||||
500:
|
|
||||||
description: internal server error
|
|
||||||
schema:
|
|
||||||
$ref: "#/definitions/errorMessage"
|
|
||||||
|
|
||||||
/register:
|
/register:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
@ -142,6 +125,60 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: "#/definitions/errorMessage"
|
$ref: "#/definitions/errorMessage"
|
||||||
|
|
||||||
|
/verify:
|
||||||
|
post:
|
||||||
|
tags:
|
||||||
|
- identity
|
||||||
|
operationId: verify
|
||||||
|
parameters:
|
||||||
|
- name: body
|
||||||
|
in: body
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/verifyRequest"
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: token ready
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/verifyResponse"
|
||||||
|
404:
|
||||||
|
description: token not found
|
||||||
|
500:
|
||||||
|
description: internal server error
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/errorMessage"
|
||||||
|
#
|
||||||
|
# metadata
|
||||||
|
#
|
||||||
|
/overview:
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- metadata
|
||||||
|
security:
|
||||||
|
- key: []
|
||||||
|
operationId: overview
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: overview returned
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/environmentServicesList"
|
||||||
|
500:
|
||||||
|
description: internal server error
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/errorMessage"
|
||||||
|
|
||||||
|
/version:
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- metadata
|
||||||
|
operationId: version
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: current server version
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/version"
|
||||||
|
#
|
||||||
|
# tunnel
|
||||||
|
#
|
||||||
/tunnel:
|
/tunnel:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
@ -191,39 +228,6 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: "#/definitions/errorMessage"
|
$ref: "#/definitions/errorMessage"
|
||||||
|
|
||||||
/verify:
|
|
||||||
post:
|
|
||||||
tags:
|
|
||||||
- identity
|
|
||||||
operationId: verify
|
|
||||||
parameters:
|
|
||||||
- name: body
|
|
||||||
in: body
|
|
||||||
schema:
|
|
||||||
$ref: "#/definitions/verifyRequest"
|
|
||||||
responses:
|
|
||||||
200:
|
|
||||||
description: token ready
|
|
||||||
schema:
|
|
||||||
$ref: "#/definitions/verifyResponse"
|
|
||||||
404:
|
|
||||||
description: token not found
|
|
||||||
500:
|
|
||||||
description: internal server error
|
|
||||||
schema:
|
|
||||||
$ref: "#/definitions/errorMessage"
|
|
||||||
|
|
||||||
/version:
|
|
||||||
get:
|
|
||||||
tags:
|
|
||||||
- metadata
|
|
||||||
operationId: version
|
|
||||||
responses:
|
|
||||||
200:
|
|
||||||
description: current server version
|
|
||||||
schema:
|
|
||||||
$ref: "#/definitions/version"
|
|
||||||
|
|
||||||
definitions:
|
definitions:
|
||||||
accountRequest:
|
accountRequest:
|
||||||
type: object
|
type: object
|
||||||
|
Loading…
Reference in New Issue
Block a user