2022-07-22 16:52:36 +02:00
|
|
|
// Code generated by go-swagger; DO NOT EDIT.
|
|
|
|
|
|
|
|
package rest_zrok_server
|
|
|
|
|
|
|
|
// This file was generated by the swagger tool.
|
|
|
|
// Editing this file might prove futile when you re-run the swagger generate command
|
|
|
|
|
|
|
|
import (
|
|
|
|
"encoding/json"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
// SwaggerJSON embedded version of the swagger document used at generation time
|
|
|
|
SwaggerJSON json.RawMessage
|
|
|
|
// FlatSwaggerJSON embedded flattened version of the swagger document used at generation time
|
|
|
|
FlatSwaggerJSON json.RawMessage
|
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
SwaggerJSON = json.RawMessage([]byte(`{
|
|
|
|
"consumes": [
|
2022-07-22 17:45:37 +02:00
|
|
|
"application/zrok.v1+json"
|
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
|
|
|
],
|
|
|
|
"schemes": [
|
|
|
|
"http"
|
|
|
|
],
|
|
|
|
"swagger": "2.0",
|
|
|
|
"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"
|
|
|
|
},
|
|
|
|
"paths": {
|
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-25 22:23:55 +02:00
|
|
|
},
|
|
|
|
"400": {
|
|
|
|
"description": "account not created (already exists)"
|
|
|
|
},
|
|
|
|
"500": {
|
|
|
|
"description": "internal server error"
|
2022-07-25 17:44:17 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-07-25 17:51:23 +02:00
|
|
|
},
|
|
|
|
"/version": {
|
|
|
|
"get": {
|
|
|
|
"tags": [
|
|
|
|
"metadata"
|
|
|
|
],
|
|
|
|
"operationId": "version",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "retrieve the current server version",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/version"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-07-22 16:52:36 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"definitions": {
|
2022-07-25 17:44:17 +02:00
|
|
|
"accountRequest": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"password": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"username": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"accountResponse": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2022-07-25 22:42:06 +02:00
|
|
|
"token": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"enableRequest": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"token": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"enableResponse": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"identity": {
|
2022-07-25 17:44:17 +02:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2022-07-22 16:52:36 +02:00
|
|
|
"version": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"version": {
|
2022-07-25 17:44:17 +02:00
|
|
|
"type": "string"
|
2022-07-22 16:52:36 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}`))
|
|
|
|
FlatSwaggerJSON = json.RawMessage([]byte(`{
|
|
|
|
"consumes": [
|
2022-07-22 17:45:37 +02:00
|
|
|
"application/zrok.v1+json"
|
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
|
|
|
],
|
|
|
|
"schemes": [
|
|
|
|
"http"
|
|
|
|
],
|
|
|
|
"swagger": "2.0",
|
|
|
|
"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"
|
|
|
|
},
|
|
|
|
"paths": {
|
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-25 22:23:55 +02:00
|
|
|
},
|
|
|
|
"400": {
|
|
|
|
"description": "account not created (already exists)"
|
|
|
|
},
|
|
|
|
"500": {
|
|
|
|
"description": "internal server error"
|
2022-07-25 17:44:17 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-07-25 17:51:23 +02:00
|
|
|
},
|
|
|
|
"/version": {
|
|
|
|
"get": {
|
|
|
|
"tags": [
|
|
|
|
"metadata"
|
|
|
|
],
|
|
|
|
"operationId": "version",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "retrieve the current server version",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/version"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-07-22 16:52:36 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"definitions": {
|
2022-07-25 17:44:17 +02:00
|
|
|
"accountRequest": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"password": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"username": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"accountResponse": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2022-07-25 22:42:06 +02:00
|
|
|
"token": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"enableRequest": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"token": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"enableResponse": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"identity": {
|
2022-07-25 17:44:17 +02:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2022-07-22 16:52:36 +02:00
|
|
|
"version": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"version": {
|
2022-07-25 17:44:17 +02:00
|
|
|
"type": "string"
|
2022-07-22 16:52:36 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}`))
|
|
|
|
}
|