2022-07-22 16:52:36 +02:00
|
|
|
info:
|
2022-07-22 17:16:30 +02:00
|
|
|
description: zrok client access
|
|
|
|
title: zrok
|
2022-07-22 16:52:36 +02:00
|
|
|
version: 1.0.0
|
2022-07-25 17:44:17 +02:00
|
|
|
|
2022-07-22 16:52:36 +02:00
|
|
|
paths:
|
|
|
|
/:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- metadata
|
|
|
|
responses:
|
|
|
|
200:
|
2022-07-22 17:16:30 +02:00
|
|
|
description: retrieve the current server version
|
2022-07-22 16:52:36 +02:00
|
|
|
schema:
|
|
|
|
$ref: "#/definitions/version"
|
2022-07-25 17:44:17 +02:00
|
|
|
/account:
|
|
|
|
post:
|
|
|
|
tags:
|
|
|
|
- identity
|
|
|
|
operationId: createAccount
|
|
|
|
parameters:
|
|
|
|
- name: body
|
|
|
|
in: body
|
|
|
|
schema:
|
|
|
|
$ref: "#/definitions/accountRequest"
|
|
|
|
responses:
|
|
|
|
201:
|
|
|
|
description: account created
|
|
|
|
schema:
|
|
|
|
$ref: "#/definitions/accountResponse"
|
|
|
|
|
2022-07-22 16:52:36 +02:00
|
|
|
definitions:
|
|
|
|
version:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
version:
|
|
|
|
type: string
|
2022-07-25 17:44:17 +02:00
|
|
|
accountRequest:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
username:
|
|
|
|
type: string
|
|
|
|
password:
|
|
|
|
type: string
|
|
|
|
accountResponse:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
apiToken:
|
|
|
|
type: string
|
|
|
|
|
2022-07-22 16:52:36 +02:00
|
|
|
produces:
|
2022-07-22 17:45:37 +02:00
|
|
|
- application/zrok.v1+json
|
2022-07-22 16:52:36 +02:00
|
|
|
consumes:
|
2022-07-22 17:45:37 +02:00
|
|
|
- application/zrok.v1+json
|
2022-07-22 16:52:36 +02:00
|
|
|
schemes:
|
|
|
|
- http
|
|
|
|
swagger: "2.0"
|