diff --git a/docs/swagger.json b/docs/swagger.json index 17793c2a8..718ff5890 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -4244,6 +4244,13 @@ }, "description": "The device model module list.", "nullable": true + }, + "edgeRoutes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/IoTEdgeRoute" + }, + "nullable": true } }, "additionalProperties": false @@ -4370,6 +4377,43 @@ }, "additionalProperties": false }, + "IoTEdgeRoute": { + "required": [ + "name", + "value" + ], + "type": "object", + "properties": { + "name": { + "minLength": 1, + "type": "string", + "description": "The route name." + }, + "value": { + "minLength": 1, + "pattern": "^(?i)FROM [\\S]+( WHERE [\\S]+)? INTO [\\S]+$", + "type": "string", + "description": "The route value.\r\nEg : FROM /messages/* INTO $upstream." + }, + "priority": { + "maximum": 9, + "minimum": 0, + "type": "integer", + "description": "The route priority", + "format": "int32", + "nullable": true + }, + "timeToLive": { + "maximum": 4294967295, + "minimum": 0, + "type": "integer", + "description": "The route time to live (secs)", + "format": "int32", + "nullable": true + } + }, + "additionalProperties": false + }, "LoRaDeviceDetails": { "required": [ "deviceID",