nginx-proxy-manager/src/backend/schema/endpoints/streams.json

190 lines
4.5 KiB
JSON
Raw Normal View History

2018-07-08 21:22:10 -04:00
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "endpoints/streams",
2018-07-25 18:23:32 -04:00
"title": "Streams",
2018-07-08 21:22:10 -04:00
"description": "Endpoints relating to Streams",
"stability": "stable",
"type": "object",
"definitions": {
"id": {
"$ref": "../definitions.json#/definitions/id"
},
"created_on": {
"$ref": "../definitions.json#/definitions/created_on"
},
"modified_on": {
"$ref": "../definitions.json#/definitions/modified_on"
},
2018-07-25 18:23:32 -04:00
"incoming_port": {
"type": "integer",
"minimum": 1,
"maximum": 65535
2018-07-08 21:22:10 -04:00
},
2018-07-25 18:23:32 -04:00
"forward_ip": {
2018-07-08 21:22:10 -04:00
"type": "string",
2018-07-25 18:23:32 -04:00
"format": "ipv4"
2018-07-08 21:22:10 -04:00
},
2018-07-25 18:23:32 -04:00
"forwarding_port": {
"type": "integer",
"minimum": 1,
"maximum": 65535
2018-07-08 21:22:10 -04:00
},
2018-07-25 18:23:32 -04:00
"tcp_forwarding": {
2018-07-08 21:22:10 -04:00
"type": "boolean"
2018-07-25 18:23:32 -04:00
},
"udp_forwarding": {
"type": "boolean"
},
"meta": {
"type": "object"
}
},
"properties": {
"id": {
"$ref": "#/definitions/id"
},
"created_on": {
"$ref": "#/definitions/created_on"
},
"modified_on": {
"$ref": "#/definitions/modified_on"
},
"incoming_port": {
"$ref": "#/definitions/incoming_port"
},
"forward_ip": {
"$ref": "#/definitions/forward_ip"
},
"forwarding_port": {
"$ref": "#/definitions/forwarding_port"
},
"tcp_forwarding": {
"$ref": "#/definitions/tcp_forwarding"
},
"udp_forwarding": {
"$ref": "#/definitions/udp_forwarding"
},
"meta": {
"$ref": "#/definitions/meta"
2018-07-08 21:22:10 -04:00
}
},
"links": [
{
"title": "List",
2018-07-25 18:23:32 -04:00
"description": "Returns a list of Steams",
"href": "/nginx/streams",
2018-07-08 21:22:10 -04:00
"access": "private",
"method": "GET",
"rel": "self",
"http_header": {
"$ref": "../examples.json#/definitions/auth_header"
},
"targetSchema": {
"type": "array",
"items": {
"$ref": "#/properties"
}
}
},
{
"title": "Create",
2018-07-25 18:23:32 -04:00
"description": "Creates a new Stream",
"href": "/nginx/streams",
2018-07-08 21:22:10 -04:00
"access": "private",
"method": "POST",
"rel": "create",
"http_header": {
"$ref": "../examples.json#/definitions/auth_header"
},
"schema": {
"type": "object",
2018-07-25 18:23:32 -04:00
"additionalProperties": false,
2018-07-08 21:22:10 -04:00
"required": [
2018-07-25 18:23:32 -04:00
"incoming_port",
"forward_ip",
"forwarding_port"
2018-07-08 21:22:10 -04:00
],
"properties": {
2018-07-25 18:23:32 -04:00
"incoming_port": {
"$ref": "#/definitions/incoming_port"
2018-07-08 21:22:10 -04:00
},
2018-07-25 18:23:32 -04:00
"forward_ip": {
"$ref": "#/definitions/forward_ip"
2018-07-08 21:22:10 -04:00
},
2018-07-25 18:23:32 -04:00
"forwarding_port": {
"$ref": "#/definitions/forwarding_port"
2018-07-08 21:22:10 -04:00
},
2018-07-25 18:23:32 -04:00
"tcp_forwarding": {
"$ref": "#/definitions/tcp_forwarding"
2018-07-08 21:22:10 -04:00
},
2018-07-25 18:23:32 -04:00
"udp_forwarding": {
"$ref": "#/definitions/udp_forwarding"
2018-07-08 21:22:10 -04:00
},
2018-07-25 18:23:32 -04:00
"meta": {
"$ref": "#/definitions/meta"
2018-07-08 21:22:10 -04:00
}
}
},
"targetSchema": {
"properties": {
"$ref": "#/properties"
}
}
},
{
"title": "Update",
2018-07-25 18:23:32 -04:00
"description": "Updates a existing Stream",
"href": "/nginx/streams/{definitions.identity.example}",
2018-07-08 21:22:10 -04:00
"access": "private",
"method": "PUT",
"rel": "update",
"http_header": {
"$ref": "../examples.json#/definitions/auth_header"
},
"schema": {
"type": "object",
2018-07-25 18:23:32 -04:00
"additionalProperties": false,
2018-07-08 21:22:10 -04:00
"properties": {
2018-07-25 18:23:32 -04:00
"incoming_port": {
"$ref": "#/definitions/incoming_port"
},
"forward_ip": {
"$ref": "#/definitions/forward_ip"
2018-07-08 21:22:10 -04:00
},
2018-07-25 18:23:32 -04:00
"forwarding_port": {
"$ref": "#/definitions/forwarding_port"
2018-07-08 21:22:10 -04:00
},
2018-07-25 18:23:32 -04:00
"tcp_forwarding": {
"$ref": "#/definitions/tcp_forwarding"
2018-07-08 21:22:10 -04:00
},
2018-07-25 18:23:32 -04:00
"udp_forwarding": {
"$ref": "#/definitions/udp_forwarding"
2018-07-08 21:22:10 -04:00
},
2018-07-25 18:23:32 -04:00
"meta": {
"$ref": "#/definitions/meta"
2018-07-08 21:22:10 -04:00
}
}
},
"targetSchema": {
"properties": {
"$ref": "#/properties"
}
}
},
{
"title": "Delete",
2018-07-25 18:23:32 -04:00
"description": "Deletes a existing Stream",
"href": "/nginx/streams/{definitions.identity.example}",
2018-07-08 21:22:10 -04:00
"access": "private",
"method": "DELETE",
"rel": "delete",
"http_header": {
"$ref": "../examples.json#/definitions/auth_header"
},
"targetSchema": {
"type": "boolean"
}
}
2018-07-25 18:23:32 -04:00
]
2018-07-08 21:22:10 -04:00
}