OpenAPI Reference
The full OpenAPI definition is generated from the codebase (see Swagger generation).
The live reference below renders BifroMQ-API.yaml directly.
BifroMQ RESTful API (4.0.0-incubating)
Download OpenAPI specification:Download
Disable store balancer
header Parameters
| req_id | integer <int64> optional caller provided request id |
| store_name required | string the store name |
| balancer_factory_class required | string the full qualified name of balancer factory class configured for the store |
Request Body schema: application/json
Schema not providedResponses
Enable store balancer
header Parameters
| req_id | integer <int64> optional caller provided request id |
| store_name required | string the store name |
| balancer_factory_class required | string the full qualified name of balancer factory class configured for the store |
Request Body schema: application/json
Schema not providedResponses
Retain a message to given topic
header Parameters
| req_id | integer <int64> optional, caller provided request id |
| tenant_id required | string the tenant id |
| topic required | string the message topic |
| qos required | integer <int32> Enum: 0 1 2 QoS of the message to be retained |
| expiry_seconds | integer <int32> the message expiry seconds |
| client_type required | string the caller client type |
| client_meta_* | string the metadata header about caller client, must be started with client_meta_ |
Request Body schema: application/octet-streamrequired
Message payload will be treated as binary
Responses
Get the session information of the given user and client id
header Parameters
| req_id | integer <int64> optional caller provided request id |
| tenant_id required | string the id of tenant |
| user_id required | string the id of user who established the session |
| client_id required | string the client id of the mqtt session |
Responses
Set the expected load rules of a store balancer
header Parameters
| req_id | integer <int64> optional caller provided request id |
| store_name required | string the store name |
| balancer_factory_class required | string the full qualified name of balancer factory class configured for the store |
Request Body schema: application/json
Schema not providedResponses
Disconnect a MQTT client connection
header Parameters
| req_id | integer <int64> optional caller provided request id |
| tenant_id required | string the tenant id |
| user_id | string the user id of the MQTT client connection to be disconnected |
| client_id | string the client id of the mqtt session |
| server_redirect | string Enum: "no" "move" "temp_use" indicate if the client should redirect to another server |
| server_reference | string <= 65535 characters indicate the server reference to redirect to |
| client_type required | string the caller client type |
| client_meta_* | string the metadata header about the caller client, must be started with client_meta_ |
Responses
Publish a message to given topic
header Parameters
| req_id | integer <int64> optional caller provided request id |
| tenant_id required | string the tenant id |
| topic required | string the message topic |
| qos required | integer <int32> Enum: 0 1 2 QoS of the message to be published |
| expiry_seconds | integer <int32> the message expiry seconds, must be positive |
| client_type required | string the caller client type |
| client_meta_* | string the metadata header about caller client, must be started with client_meta_ |
Request Body schema: application/octet-streamrequired
Message payload will be treated as binary
Responses
Set group tag to a server in a service
header Parameters
| req_id | integer <int64> optional caller provided request id |
| service_name required | string the service name |
| server_id required | string the service server id |
Request Body schema: application/jsonrequired
Responses
Request samples
- Payload
[- "string"
]Add a topic subscription to a mqtt session
header Parameters
| req_id | integer <int64> optional caller provided request id |
| tenant_id required | string the id of tenant |
| user_id required | string the id of user who established the session |
| client_id required | string the client id of the mqtt session |
| topic_filter required | string the topic filter to add |
| sub_qos required | integer <int32> Enum: 0 1 2 the qos of the subscription |
Responses
Remove a topic subscription from a mqtt session
header Parameters
| req_id | integer <int64> optional caller provided request id |
| tenant_id required | string the id of tenant |
| user_id required | string the id of user who established the session |
| client_id required | string the client id of the mqtt session |
| topic_filter required | string the topic filter to remove |