Commit 557999d3 authored by Michal Konopa's avatar Michal Konopa

added json schemas for Remove Bond Service

parent b32f3c62
{
"$schema": "https://apidocs.iqrf.org/iqrf-gateway-daemon/com.iqrftech.self-desc/schema/jsonschema/1-0-0#",
"self": {
"vendor": "com.iqrftech.self-desc",
"name": "iqmeshNetwork_RemoveBond-request",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"mType": {
"type": "string",
"description": "IQMESH Network management - remove bond.",
"enum": [
"iqmeshNetwork_RemoveBond"
]
},
"data": {
"type": "object",
"properties": {
"msgId": {
"type": "string",
"description": "Message identification for binding request with response."
},
"repeat": {
"type": "integer",
"description": "Number of repetitions of DPA messages.",
"default": 1
},
"req": {
"type": "object",
"properties": {
"deviceAddr": {
"type": "integer",
"description": "Address to node to remove. In the case of 0xFF, all bonded nodes are removed."
},
"hwpId": {
"type": "integer",
"description": "HWP id."
}
},
"required": [
"deviceAddr"
]
},
"returnVerbose": {
"type": "boolean",
"description": "Flag that includes additional parameters in the response."
}
},
"required": [
"msgId",
"req"
]
}
},
"required": [
"mType",
"data"
]
}
{
"$schema": "https://apidocs.iqrf.org/iqrf-gateway-daemon/com.iqrftech.self-desc/schema/jsonschema/1-0-0#",
"self": {
"vendor": "com.iqrftech.self-desc",
"name": "iqmeshNetwork_RemoveBond-response",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"mType": {
"type": "string",
"description": "IQMESH Network management - Remove bond response.",
"enum": [
"iqmeshNetwork_RemoveBond"
]
},
"data": {
"type": "object",
"properties": {
"msgId": {
"type": "string",
"description": "Message identification for binding request with response."
},
"rsp": {
"type": "object",
"description": "Returns following values, see its description.",
"properties": {
"nodesNr": {
"type": "integer",
"description": "Number of bonded nodes in the network."
}
},
"required": [
"nodesNr"
]
},
"raw": {
"type": "array",
"description": "Returns array of objects req-cnf-rsp, see its description.",
"items": {
"type": "object",
"properties": {
"request": {
"type": "string",
"description": "Binary buffer with DPA request."
},
"requestTs": {
"type": "string",
"description": "YYYY-MM-DDTHH:MM:SS.MS"
},
"confirmation": {
"type": "string",
"description": "Binary buffer with DPA confirmation."
},
"confirmationTs": {
"type": "string",
"description": "YYYY-MM-DDTHH:MM:SS.MS"
},
"response": {
"type": "string",
"description": "Binary buffer with DPA response."
},
"responseTs": {
"type": "string",
"description": "YYYY-MM-DDTHH:MM:SS.MS"
}
},
"required": [
"request",
"requestTs",
"confirmation",
"confirmationTs",
"response",
"responseTs"
]
}
},
"insId": {
"type": "string",
"description": "IQRF GW daemon instance identification."
},
"status": {
"type": "integer",
"description": "IQRF GW daemon API (general or mType) status."
},
"statusStr": {
"type": "string",
"description": "IQRF GW daemon API (general or mType) status in string form."
}
},
"required": [
"msgId",
"status"
]
}
},
"required": [
"mType",
"data"
]
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment