Skip to content

Commit

Permalink
Adds auto-generated Open API doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
kbeaugrand authored Nov 25, 2022
1 parent 16acfec commit 8b99db0
Showing 1 changed file with 200 additions and 0 deletions.
200 changes: 200 additions & 0 deletions docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,55 @@
}
}
},
"/api/devices/{deviceId}/telemetry": {
"get": {
"tags": [
"IoT Devices"
],
"parameters": [
{
"name": "deviceId",
"in": "path",
"required": true,
"style": "simple",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/LoRaDeviceTelemetryDto"
}
}
},
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/LoRaDeviceTelemetryDto"
}
}
},
"text/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/LoRaDeviceTelemetryDto"
}
}
}
}
}
}
}
},
"/api/edge/devices": {
"get": {
"tags": [
Expand Down Expand Up @@ -2006,6 +2055,55 @@
}
}
},
"/api/lorawan/devices/{deviceId}/telemetry": {
"get": {
"tags": [
"LoRa WAN"
],
"parameters": [
{
"name": "deviceId",
"in": "path",
"required": true,
"style": "simple",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/LoRaDeviceTelemetryDto"
}
}
},
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/LoRaDeviceTelemetryDto"
}
}
},
"text/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/LoRaDeviceTelemetryDto"
}
}
}
}
}
}
}
},
"/api/lorawan/devices/gateways": {
"get": {
"tags": [
Expand Down Expand Up @@ -4969,6 +5067,23 @@
"additionalProperties": false,
"description": "LoRa Device model."
},
"LoRaDeviceTelemetryDto": {
"type": "object",
"properties": {
"id": {
"type": "string",
"nullable": true
},
"enqueuedTime": {
"type": "string",
"format": "date-time"
},
"telemetry": {
"$ref": "#/components/schemas/LoRaTelemetryDto"
}
},
"additionalProperties": false
},
"LoRaGatewayIDList": {
"type": "object",
"properties": {
Expand All @@ -4982,6 +5097,91 @@
},
"additionalProperties": false
},
"LoRaTelemetryDto": {
"type": "object",
"properties": {
"time": {
"type": "integer",
"format": "int64"
},
"gpsTime": {
"type": "integer",
"format": "int32"
},
"freq": {
"type": "number",
"format": "double"
},
"chan": {
"type": "integer",
"format": "int32"
},
"rfch": {
"type": "integer",
"format": "int32"
},
"modu": {
"type": "string",
"nullable": true
},
"datr": {
"type": "string",
"nullable": true
},
"rssi": {
"type": "number",
"format": "double"
},
"lsnr": {
"type": "number",
"format": "float"
},
"data": {
"nullable": true
},
"port": {
"type": "integer",
"format": "int32"
},
"fcnt": {
"type": "integer",
"format": "int32"
},
"edgets": {
"type": "integer",
"format": "int64"
},
"rawdata": {
"type": "string",
"nullable": true
},
"deviceEUI": {
"type": "string",
"nullable": true
},
"gatewayID": {
"type": "string",
"nullable": true
},
"stationEui": {
"type": "string",
"nullable": true
},
"dupMsg": {
"type": "boolean",
"nullable": true
},
"extraData": {
"type": "object",
"additionalProperties": {
"nullable": true
},
"nullable": true,
"readOnly": true
}
},
"additionalProperties": false
},
"PortalMetric": {
"type": "object",
"properties": {
Expand Down

0 comments on commit 8b99db0

Please sign in to comment.