zrok/specs/zrok.yml
2022-07-25 11:44:17 -04:00

58 lines
1.0 KiB
YAML

info:
description: zrok client access
title: zrok
version: 1.0.0
paths:
/:
get:
tags:
- metadata
responses:
200:
description: retrieve the current server version
schema:
$ref: "#/definitions/version"
/account:
post:
tags:
- identity
operationId: createAccount
parameters:
- name: body
in: body
schema:
$ref: "#/definitions/accountRequest"
responses:
201:
description: account created
schema:
$ref: "#/definitions/accountResponse"
definitions:
version:
type: object
properties:
version:
type: string
accountRequest:
type: object
properties:
username:
type: string
password:
type: string
accountResponse:
type: object
properties:
apiToken:
type: string
produces:
- application/zrok.v1+json
consumes:
- application/zrok.v1+json
schemes:
- http
swagger: "2.0"