mirror of
https://github.com/openziti/zrok.git
synced 2025-08-14 02:05:39 +02:00
'verify' api endpoint (#50)
This commit is contained in:
@ -286,6 +286,40 @@ func init() {
|
||||
}
|
||||
}
|
||||
},
|
||||
"/verify": {
|
||||
"get": {
|
||||
"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": [
|
||||
@ -294,7 +328,7 @@ func init() {
|
||||
"operationId": "version",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "retrieve the current server version",
|
||||
"description": "current server version",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/version"
|
||||
}
|
||||
@ -512,6 +546,22 @@ func init() {
|
||||
}
|
||||
}
|
||||
},
|
||||
"verifyRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"token": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"verifyResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"email": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"version": {
|
||||
"type": "string"
|
||||
}
|
||||
@ -793,6 +843,40 @@ func init() {
|
||||
}
|
||||
}
|
||||
},
|
||||
"/verify": {
|
||||
"get": {
|
||||
"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": [
|
||||
@ -801,7 +885,7 @@ func init() {
|
||||
"operationId": "version",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "retrieve the current server version",
|
||||
"description": "current server version",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/version"
|
||||
}
|
||||
@ -1019,6 +1103,22 @@ func init() {
|
||||
}
|
||||
}
|
||||
},
|
||||
"verifyRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"token": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"verifyResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"email": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"version": {
|
||||
"type": "string"
|
||||
}
|
||||
|
Reference in New Issue
Block a user