mirror of
https://github.com/openziti/zrok.git
synced 2025-08-10 08:27:49 +02:00
initial access/unaccess api (#111)
This commit is contained in:
@ -35,6 +35,39 @@ func init() {
|
||||
},
|
||||
"basePath": "/api/v1",
|
||||
"paths": {
|
||||
"/access": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"key": []
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"service"
|
||||
],
|
||||
"operationId": "access",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/accessRequest"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"201": {
|
||||
"description": "access created"
|
||||
},
|
||||
"401": {
|
||||
"description": "unauthorized"
|
||||
},
|
||||
"500": {
|
||||
"description": "internal server error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/account": {
|
||||
"post": {
|
||||
"tags": [
|
||||
@ -275,6 +308,42 @@ func init() {
|
||||
}
|
||||
}
|
||||
},
|
||||
"/unaccess": {
|
||||
"delete": {
|
||||
"security": [
|
||||
{
|
||||
"key": []
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"service"
|
||||
],
|
||||
"operationId": "unaccess",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/unaccessRequest"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "access removed"
|
||||
},
|
||||
"401": {
|
||||
"description": "unauthorized"
|
||||
},
|
||||
"404": {
|
||||
"description": "not found"
|
||||
},
|
||||
"500": {
|
||||
"description": "internal server error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/unshare": {
|
||||
"delete": {
|
||||
"security": [
|
||||
@ -366,6 +435,17 @@ func init() {
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
"accessRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"svcName": {
|
||||
"type": "string"
|
||||
},
|
||||
"zId": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"accountRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@ -604,6 +684,17 @@ func init() {
|
||||
}
|
||||
}
|
||||
},
|
||||
"unaccessRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"svcName": {
|
||||
"type": "string"
|
||||
},
|
||||
"zId": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"unshareRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@ -661,6 +752,39 @@ func init() {
|
||||
},
|
||||
"basePath": "/api/v1",
|
||||
"paths": {
|
||||
"/access": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"key": []
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"service"
|
||||
],
|
||||
"operationId": "access",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/accessRequest"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"201": {
|
||||
"description": "access created"
|
||||
},
|
||||
"401": {
|
||||
"description": "unauthorized"
|
||||
},
|
||||
"500": {
|
||||
"description": "internal server error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/account": {
|
||||
"post": {
|
||||
"tags": [
|
||||
@ -901,6 +1025,42 @@ func init() {
|
||||
}
|
||||
}
|
||||
},
|
||||
"/unaccess": {
|
||||
"delete": {
|
||||
"security": [
|
||||
{
|
||||
"key": []
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"service"
|
||||
],
|
||||
"operationId": "unaccess",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/unaccessRequest"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "access removed"
|
||||
},
|
||||
"401": {
|
||||
"description": "unauthorized"
|
||||
},
|
||||
"404": {
|
||||
"description": "not found"
|
||||
},
|
||||
"500": {
|
||||
"description": "internal server error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/unshare": {
|
||||
"delete": {
|
||||
"security": [
|
||||
@ -992,6 +1152,17 @@ func init() {
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
"accessRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"svcName": {
|
||||
"type": "string"
|
||||
},
|
||||
"zId": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"accountRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@ -1230,6 +1401,17 @@ func init() {
|
||||
}
|
||||
}
|
||||
},
|
||||
"unaccessRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"svcName": {
|
||||
"type": "string"
|
||||
},
|
||||
"zId": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"unshareRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
Reference in New Issue
Block a user