From 1812d25bbffe1c8b98e9784b7c6872a589b22b4a Mon Sep 17 00:00:00 2001 From: hocinehacherouf Date: Fri, 25 Nov 2022 07:47:27 +0000 Subject: [PATCH] Adds auto-generated Open API doc. --- docs/swagger.json | 151 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 151 insertions(+) diff --git a/docs/swagger.json b/docs/swagger.json index 9f1e91d50..65dcdcc45 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -2006,6 +2006,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": [ @@ -4969,6 +5018,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": { @@ -4982,6 +5048,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": {