| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- {
- "swagger": "2.0",
- "info": {
- "title": "vpn.proto",
- "version": "version not set"
- },
- "schemes": [
- "http",
- "https"
- ],
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "paths": {
- "/v1/vpn/init": {
- "post": {
- "operationId": "Init",
- "responses": {
- "200": {
- "description": "",
- "schema": {
- "$ref": "#/definitions/pbVPNInitResponse"
- }
- }
- },
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/pbVPNInitRequest"
- }
- }
- ],
- "tags": [
- "VPNService"
- ]
- }
- },
- "/v1/vpn/status": {
- "post": {
- "operationId": "Status",
- "responses": {
- "200": {
- "description": "",
- "schema": {
- "$ref": "#/definitions/pbVPNStatusResponse"
- }
- }
- },
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/pbVPNStatusRequest"
- }
- }
- ],
- "tags": [
- "VPNService"
- ]
- }
- }
- },
- "definitions": {
- "pbVPNInitRequest": {
- "type": "object",
- "properties": {
- "Hostname": {
- "type": "string"
- },
- "Port": {
- "type": "string"
- },
- "Protopref": {
- "$ref": "#/definitions/pbVPNProto"
- }
- }
- },
- "pbVPNInitResponse": {
- "type": "object"
- },
- "pbVPNProto": {
- "type": "string",
- "enum": [
- "NOPREF",
- "UDP",
- "TCP"
- ],
- "default": "NOPREF"
- },
- "pbVPNStatusRequest": {
- "type": "object"
- },
- "pbVPNStatusResponse": {
- "type": "object",
- "properties": {
- "Name": {
- "type": "string"
- },
- "SerialNumber": {
- "type": "string"
- },
- "Hostname": {
- "type": "string"
- },
- "Port": {
- "type": "string"
- },
- "Cert": {
- "type": "string"
- },
- "CACert": {
- "type": "string"
- },
- "Net": {
- "type": "string"
- },
- "Mask": {
- "type": "string"
- },
- "CreatedAt": {
- "type": "string"
- },
- "Proto": {
- "type": "string"
- }
- }
- }
- }
- }
|