Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@FZambia
Created May 19, 2020 21:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FZambia/756f4ab97d166b9e33753e293e634e81 to your computer and use it in GitHub Desktop.
Save FZambia/756f4ab97d166b9e33753e293e634e81 to your computer and use it in GitHub Desktop.
API Swagger JSON
{
"swagger": "2.0",
"info": {
"title": "api.proto",
"version": "version not set"
},
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {},
"definitions": {
"apiBroadcastResponse": {
"type": "object",
"properties": {
"error": {
"$ref": "#/definitions/apiError"
},
"result": {
"$ref": "#/definitions/apiBroadcastResult"
}
}
},
"apiBroadcastResult": {
"type": "object"
},
"apiChannelsResponse": {
"type": "object",
"properties": {
"error": {
"$ref": "#/definitions/apiError"
},
"result": {
"$ref": "#/definitions/apiChannelsResult"
}
}
},
"apiChannelsResult": {
"type": "object",
"properties": {
"channels": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"apiClientInfo": {
"type": "object",
"properties": {
"user": {
"type": "string"
},
"client": {
"type": "string"
},
"conn_info": {
"type": "string",
"format": "byte"
},
"chan_info": {
"type": "string",
"format": "byte"
}
}
},
"apiDisconnectResponse": {
"type": "object",
"properties": {
"error": {
"$ref": "#/definitions/apiError"
},
"result": {
"$ref": "#/definitions/apiDisconnectResult"
}
}
},
"apiDisconnectResult": {
"type": "object"
},
"apiError": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int64"
},
"message": {
"type": "string"
}
}
},
"apiHistoryRemoveResponse": {
"type": "object",
"properties": {
"error": {
"$ref": "#/definitions/apiError"
},
"result": {
"$ref": "#/definitions/apiHistoryRemoveResult"
}
}
},
"apiHistoryRemoveResult": {
"type": "object"
},
"apiHistoryResponse": {
"type": "object",
"properties": {
"error": {
"$ref": "#/definitions/apiError"
},
"result": {
"$ref": "#/definitions/apiHistoryResult"
}
}
},
"apiHistoryResult": {
"type": "object",
"properties": {
"publications": {
"type": "array",
"items": {
"$ref": "#/definitions/apiPublication"
}
}
}
},
"apiInfoResponse": {
"type": "object",
"properties": {
"error": {
"$ref": "#/definitions/apiError"
},
"result": {
"$ref": "#/definitions/apiInfoResult"
}
}
},
"apiInfoResult": {
"type": "object",
"properties": {
"nodes": {
"type": "array",
"items": {
"$ref": "#/definitions/apiNodeResult"
}
}
}
},
"apiMetrics": {
"type": "object",
"properties": {
"interval": {
"type": "number",
"format": "double"
},
"items": {
"type": "object",
"additionalProperties": {
"type": "number",
"format": "double"
}
}
}
},
"apiNodeResult": {
"type": "object",
"properties": {
"uid": {
"type": "string"
},
"name": {
"type": "string"
},
"version": {
"type": "string"
},
"num_clients": {
"type": "integer",
"format": "int64"
},
"num_users": {
"type": "integer",
"format": "int64"
},
"num_channels": {
"type": "integer",
"format": "int64"
},
"uptime": {
"type": "integer",
"format": "int64"
},
"metrics": {
"$ref": "#/definitions/apiMetrics"
}
}
},
"apiPresenceResponse": {
"type": "object",
"properties": {
"error": {
"$ref": "#/definitions/apiError"
},
"result": {
"$ref": "#/definitions/apiPresenceResult"
}
}
},
"apiPresenceResult": {
"type": "object",
"properties": {
"presence": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/apiClientInfo"
}
}
}
},
"apiPresenceStatsResponse": {
"type": "object",
"properties": {
"error": {
"$ref": "#/definitions/apiError"
},
"result": {
"$ref": "#/definitions/apiPresenceStatsResult"
}
}
},
"apiPresenceStatsResult": {
"type": "object",
"properties": {
"num_clients": {
"type": "integer",
"format": "int64"
},
"num_users": {
"type": "integer",
"format": "int64"
}
}
},
"apiPublication": {
"type": "object",
"properties": {
"uid": {
"type": "string"
},
"data": {
"type": "string",
"format": "byte"
},
"info": {
"$ref": "#/definitions/apiClientInfo"
}
}
},
"apiPublishResponse": {
"type": "object",
"properties": {
"error": {
"$ref": "#/definitions/apiError"
},
"result": {
"$ref": "#/definitions/apiPublishResult"
}
}
},
"apiPublishResult": {
"type": "object"
},
"apiUnsubscribeResponse": {
"type": "object",
"properties": {
"error": {
"$ref": "#/definitions/apiError"
},
"result": {
"$ref": "#/definitions/apiUnsubscribeResult"
}
}
},
"apiUnsubscribeResult": {
"type": "object"
},
"gatewayruntimeError": {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
},
"protobufAny": {
"type": "object",
"properties": {
"type_url": {
"type": "string"
},
"value": {
"type": "string",
"format": "byte"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment