mirror of
https://github.com/openziti/zrok.git
synced 2025-08-19 12:24:37 +02:00
tunnel -> service; tunnel.Tunnel -> service.Share; tunnel.Untunnel -> service.Unshare (#102)
This commit is contained in:
@@ -177,52 +177,50 @@ paths:
|
||||
schema:
|
||||
$ref: "#/definitions/version"
|
||||
#
|
||||
# tunnel
|
||||
# service
|
||||
#
|
||||
/tunnel:
|
||||
/share:
|
||||
post:
|
||||
tags:
|
||||
- tunnel
|
||||
- service
|
||||
security:
|
||||
- key: []
|
||||
operationId: tunnel
|
||||
operationId: share
|
||||
parameters:
|
||||
- name: body
|
||||
in: body
|
||||
schema:
|
||||
$ref: "#/definitions/tunnelRequest"
|
||||
$ref: "#/definitions/shareRequest"
|
||||
responses:
|
||||
201:
|
||||
description: tunnel created
|
||||
description: service created
|
||||
schema:
|
||||
$ref: "#/definitions/tunnelResponse"
|
||||
$ref: "#/definitions/shareResponse"
|
||||
401:
|
||||
description: invalid environment identity
|
||||
schema:
|
||||
$ref: "#/definitions/errorMessage"
|
||||
description: unauthorized
|
||||
500:
|
||||
description: internal server error
|
||||
schema:
|
||||
$ref: "#/definitions/errorMessage"
|
||||
/untunnel:
|
||||
/unshare:
|
||||
delete:
|
||||
tags:
|
||||
- tunnel
|
||||
- service
|
||||
security:
|
||||
- key: []
|
||||
operationId: untunnel
|
||||
operationId: unshare
|
||||
parameters:
|
||||
- name: body
|
||||
in: body
|
||||
schema:
|
||||
$ref: "#/definitions/untunnelRequest"
|
||||
$ref: "#/definitions/unshareRequest"
|
||||
responses:
|
||||
200:
|
||||
description: tunnel removed
|
||||
description: service removed
|
||||
401:
|
||||
description: unauthorized
|
||||
404:
|
||||
description: not found
|
||||
schema:
|
||||
$ref: "#/definitions/errorMessage"
|
||||
500:
|
||||
description: internal server error
|
||||
schema:
|
||||
@@ -361,7 +359,7 @@ definitions:
|
||||
items:
|
||||
type: integer
|
||||
|
||||
tunnelRequest:
|
||||
shareRequest:
|
||||
type: object
|
||||
properties:
|
||||
zId:
|
||||
@@ -374,7 +372,7 @@ definitions:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/definitions/authUser"
|
||||
tunnelResponse:
|
||||
shareResponse:
|
||||
type: object
|
||||
properties:
|
||||
proxyEndpoint:
|
||||
@@ -382,7 +380,7 @@ definitions:
|
||||
svcName:
|
||||
type: string
|
||||
|
||||
untunnelRequest:
|
||||
unshareRequest:
|
||||
type: object
|
||||
properties:
|
||||
zId:
|
||||
|
Reference in New Issue
Block a user