Skip to content

Commit 2fb3e00

Browse files
authored
Merge pull request #1016
* feat(33975): add the path and schemas for the interpolation variables… * feat(33975): add tag description * fix(33975): fix version * Update ext/openAPI/components/schemas/InterpolationVariableList.yaml * fix(33975): replacing the booleans with a multi-option select * fix(33975): fix ref and required * fix(33975): fix typo
1 parent a1075f2 commit 2fb3e00

File tree

5 files changed

+80
-1
lines changed

5 files changed

+80
-1
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
type: object
2+
required:
3+
- variable
4+
- type
5+
- description
6+
- policyType
7+
properties:
8+
variable:
9+
type: string
10+
description: The unique variable name
11+
type:
12+
type: string
13+
enum: ["string", "long"]
14+
description:
15+
type: string
16+
description: The description of the variable name
17+
policyType:
18+
type: array
19+
description: The list of policy types this variable can be used with
20+
uniqueItems: true
21+
items:
22+
$ref: ./PolicyType.yaml
23+
example:
24+
variable: clientId
25+
type: string
26+
description: The MQTT client ID
27+
policyType:
28+
- DATA_POLICY
29+
- BEHAVIOR_POLICY
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
type: object
2+
description: The list of interpolation variables that can be used in this Datahub instance
3+
properties:
4+
items:
5+
type: array
6+
items:
7+
$ref: ./InterpolationVariable.yaml
8+
required:
9+
- items
10+
example:
11+
items:
12+
- variable: clientId
13+
type: string
14+
description: The MQTT client ID
15+
policyType:
16+
- DATA_POLICY
17+
- BEHAVIOR_POLICY
18+
- variable: topic
19+
type: string
20+
description: The MQTT topic to which the MQTT message was published xxx
21+
policyType:
22+
- DATA_POLICY
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
description: The type of policy in Data Hub
2+
type: string
3+
enum:
4+
- DATA_POLICY
5+
- BEHAVIOR_POLICY

ext/openAPI/openapi.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ info:
3030
imported into popular API tooling (e.g. Postman) or can be used to generate
3131
client-code for multiple programming languages.
3232
title: HiveMQ Edge REST API
33-
version: 2025.9-SNAPSHOT
33+
version: 2025.10-SNAPSHOT
3434
x-logo:
3535
url: https://www.hivemq.com/img/svg/hivemq-bee.svg
3636
tags:
@@ -63,6 +63,8 @@ tags:
6363
This resource bundles endpoints for the available Functions for the HiveMQ
6464
Data Hub. Currently this is limited to getting the available Functions.
6565
name: Data Hub - Functions
66+
- description: This resource bundles endpoints for the interpolation features.
67+
name: Data Hub - Interpolation
6668
- description: >-
6769
Policies describe how you want the HiveMQ broker to validate the behavior
6870
of MQTT clients.
@@ -176,6 +178,8 @@ paths:
176178
$ref: paths/api_v1_data-hub_fsm.yaml
177179
/api/v1/data-hub/functions:
178180
$ref: paths/api_v1_data-hub_functions.yaml
181+
/api/v1/data-hub/interpolation-variables:
182+
$ref: paths/api_v1_data-hub_interpolation-variables.yaml
179183
/api/v1/data-hub/function-specs:
180184
$ref: paths/api_v1_data-hub_function-specs.yaml
181185
/api/v1/data-hub/schemas:
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
get:
2+
description: This endpoint provides the means to get information on the interpolation variables available for the HiveMQ Data Hub.
3+
operationId: getVariables
4+
responses:
5+
'200':
6+
content:
7+
application/json:
8+
schema:
9+
$ref: ../components/schemas/InterpolationVariableList.yaml
10+
description: Success
11+
'500':
12+
content:
13+
application/json:
14+
schema:
15+
$ref: ../components/schemas/ProblemDetails.yaml
16+
description: Internal server error
17+
summary: Get all interpolation variables
18+
tags:
19+
- Data Hub - Interpolation

0 commit comments

Comments
 (0)