mirror of
https://github.com/openziti/zrok.git
synced 2025-08-17 03:11:17 +02:00
/disable endpoint in openapi definition (#30)
This commit is contained in:
@ -72,6 +72,42 @@ func init() {
|
||||
}
|
||||
}
|
||||
},
|
||||
"/disable": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"key": []
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"identity"
|
||||
],
|
||||
"operationId": "disable",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/disableRequest"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "environment disabled"
|
||||
},
|
||||
"401": {
|
||||
"description": "invalid environment"
|
||||
},
|
||||
"500": {
|
||||
"description": "internal server error",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/errorMessage"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/enable": {
|
||||
"post": {
|
||||
"security": [
|
||||
@ -298,6 +334,14 @@ func init() {
|
||||
}
|
||||
}
|
||||
},
|
||||
"disableRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"identity": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"enableRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@ -535,6 +579,42 @@ func init() {
|
||||
}
|
||||
}
|
||||
},
|
||||
"/disable": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"key": []
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"identity"
|
||||
],
|
||||
"operationId": "disable",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/disableRequest"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "environment disabled"
|
||||
},
|
||||
"401": {
|
||||
"description": "invalid environment"
|
||||
},
|
||||
"500": {
|
||||
"description": "internal server error",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/errorMessage"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/enable": {
|
||||
"post": {
|
||||
"security": [
|
||||
@ -761,6 +841,14 @@ func init() {
|
||||
}
|
||||
}
|
||||
},
|
||||
"disableRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"identity": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"enableRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
Reference in New Issue
Block a user