mirror of
https://github.com/openziti/zrok.git
synced 2025-08-13 17:57:37 +02:00
'register' endpoint spec (#50)
This commit is contained in:
@ -205,6 +205,37 @@ func init() {
|
||||
}
|
||||
}
|
||||
},
|
||||
"/register": {
|
||||
"post": {
|
||||
"tags": [
|
||||
"identity"
|
||||
],
|
||||
"operationId": "register",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/registerRequest"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "account created"
|
||||
},
|
||||
"404": {
|
||||
"description": "request not found"
|
||||
},
|
||||
"500": {
|
||||
"description": "internal server error",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/errorMessage"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/tunnel": {
|
||||
"post": {
|
||||
"security": [
|
||||
@ -478,6 +509,17 @@ func init() {
|
||||
}
|
||||
}
|
||||
},
|
||||
"registerRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"password": {
|
||||
"type": "string"
|
||||
},
|
||||
"token": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"service": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@ -762,6 +804,37 @@ func init() {
|
||||
}
|
||||
}
|
||||
},
|
||||
"/register": {
|
||||
"post": {
|
||||
"tags": [
|
||||
"identity"
|
||||
],
|
||||
"operationId": "register",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/registerRequest"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "account created"
|
||||
},
|
||||
"404": {
|
||||
"description": "request not found"
|
||||
},
|
||||
"500": {
|
||||
"description": "internal server error",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/errorMessage"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/tunnel": {
|
||||
"post": {
|
||||
"security": [
|
||||
@ -1035,6 +1108,17 @@ func init() {
|
||||
}
|
||||
}
|
||||
},
|
||||
"registerRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"password": {
|
||||
"type": "string"
|
||||
},
|
||||
"token": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"service": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
Reference in New Issue
Block a user