Commit 0c13fd34 authored by Rostislav Spinar's avatar Rostislav Spinar

Adding Metadata API

parent af10bce0
{
"$schema": "https://apidocs.iqrf.org/iqrf-gateway-daemon/com.iqrftech.self-desc/schema/jsonschema/1-0-0#",
"self": {
"vendor": "com.iqrftech.self-desc",
"name": "mngDaemon-ExportMetaDataAll-request",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"mType": {
"type": "string",
"description": "Daemon metadata - Export metadata.",
"enum": [
"mngDaemon-ExportMetaDataAll"
]
},
"data": {
"type": "object",
"properties": {
"msgId": {
"type": "string",
"description": "Message identification for binding request with response."
},
"returnVerbose": {
"type": "boolean",
"description": "Flag that includes additional parameters in the response."
}
},
"required": [
"msgId"
]
}
},
"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": "mngDaemon-ExportMetaDataAll-response",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"mType": {
"type": "string",
"description": "Daemon metadata - Export metadata.",
"enum": [
"mngDaemon-ExportMetaDataAll"
]
},
"data": {
"type": "object",
"properties": {
"msgId": {
"type": "string",
"description": "Message identification for binding request with response."
},
"rsp": {
"type": "object",
"properties": {
"metaIdMetaDataMap": {
"type": "array",
"description": "Metadata map.",
"properties": {
"metaId": {
"type":"string",
"description": "Metadata ID."
},
"metaData": {
"type":"object",
"description": "Metadata JSON."
}
}
},
"midMetaIdMap": {
"type": "array",
"description": "Metadata MID map.",
"properties": {
"mid": {
"type":"string",
"description": "Module ID."
},
"metaId": {
"type":"string",
"description": "Metadata ID."
}
}
}
},
"required": [
"metaIdMetaDataMap",
"midMetaIdMap"
]
},
"insId": {
"type": "string",
"description": "IQRF GW daemon instance identification."
},
"status": {
"type": "integer",
"description": "Status of operation."
},
"statusStr": {
"type": "string",
"description": "IQRF GW daemon API (general or mType) status in string form."
}
},
"required": [
"msgId",
"rsp",
"status"
]
}
},
"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": "mngDaemon-ExportNadrMidMap-request",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"mType": {
"type": "string",
"description": "Daemon metadata - Export NADR-MID metadata.",
"enum": [
"mngDaemon-ExportNadrMidMap"
]
},
"data": {
"type": "object",
"properties": {
"msgId": {
"type": "string",
"description": "Message identification for binding request with response."
},
"returnVerbose": {
"type": "boolean",
"description": "Flag that includes additional parameters in the response."
}
},
"required": [
"msgId"
]
}
},
"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": "mngDaemon-ExportNadrMidMap-response",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"mType": {
"type": "string",
"description": "Daemon metadata - Export NADR-MID metadata.",
"enum": [
"mngDaemon-ExportNadrMidMap"
]
},
"data": {
"type": "object",
"properties": {
"msgId": {
"type": "string",
"description": "Message identification for binding request with response."
},
"rsp": {
"type": "object",
"properties": {
"nadrMidMap": {
"type": "array",
"description": "NADR-MID map.",
"properties": {
"nAdr": {
"type":"integer",
"description": "Network Address."
},
"mid": {
"type":"string",
"description": "Module ID."
}
}
}
},
"required": [
"nadrMidMap"
]
},
"insId": {
"type": "string",
"description": "IQRF GW daemon instance identification."
},
"status": {
"type": "integer",
"description": "Status of operation."
},
"statusStr": {
"type": "string",
"description": "IQRF GW daemon API (general or mType) status in string form."
}
},
"required": [
"msgId",
"rsp",
"status"
]
}
},
"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": "mngDaemon-GetNadrMetaData-request",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"mType": {
"type": "string",
"description": "Daemon metadata - Get NADR to metadata.",
"enum": [
"mngDaemon-GetNadrMetaData"
]
},
"data": {
"type": "object",
"properties": {
"msgId": {
"type": "string",
"description": "Message identification for binding request with response."
},
"req": {
"type": "object",
"properties": {
"nAdr": {
"type": "integer",
"description": "Network address."
}
},
"required": [
"nAdr"
]
},
"returnVerbose": {
"type": "boolean",
"description": "Flag that includes additional parameters in the response."
}
},
"required": [
"msgId"
]
}
},
"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": "mngDaemon-GetNadrMetaData-response",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"mType": {
"type": "string",
"description": "Daemon metadata - Get NADR to metadata.",
"enum": [
"mngDaemon-GetNadrMetaData"
]
},
"data": {
"type": "object",
"properties": {
"msgId": {
"type": "string",
"description": "Message identification for binding request with response."
},
"rsp": {
"type": "object",
"properties": {
"nAdr": {
"type": "integer",
"description": "Network Address."
},
"mid": {
"type": "string",
"description": "Module ID."
},
"metaId": {
"type": "string",
"description": "Metadata ID."
},
"metaData": {
"type": "object",
"description": "Metadata Json."
}
},
"required": [
"nAdr",
"mid",
"metaId",
"metaData"
]
},
"insId": {
"type": "string",
"description": "IQRF GW daemon instance identification."
},
"status": {
"type": "integer",
"description": "Status of operation."
},
"statusStr": {
"type": "string",
"description": "IQRF GW daemon API (general or mType) status in string form."
}
},
"required": [
"msgId",
"rsp",
"status"
]
}
},
"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": "mngDaemon-ImportMetaDataAll-request",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"mType": {
"type": "string",
"description": "Daemon metadata - Import metadata.",
"enum": [
"mngDaemon-ImportMetaDataAll"
]
},
"data": {
"type": "object",
"properties": {
"msgId": {
"type": "string",
"description": "Message identification for binding request with response."
},
"req": {
"type": "object",
"properties": {
"metaIdMetaDataMap": {
"type": "array",
"description": "Metadata map.",
"properties": {
"metaId": {
"type":"string",
"description": "Metadata ID."
},
"metaData": {
"type":"object",
"description": "Metadata JSON."
}
}
},
"midMetaIdMap": {
"type": "array",
"description": "Metadata MID map.",
"properties": {
"mid": {
"type":"string",
"description": "Module ID."
},
"metaId": {
"type":"string",
"description": "Metadata ID."
}
}
}
},
"required": [
"metaIdMetaDataMap",
"midMetaIdMap"
]
},
"returnVerbose": {
"type": "boolean",
"description": "Flag that includes additional parameters in the response."
}
},
"required": [
"msgId"
]
}
},
"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": "mngDaemon-ImportMetaDataAll-response",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"mType": {
"type": "string",
"description": "Daemon metadata - Import metadata.",
"enum": [
"mngDaemon-ImportMetaDataAll"
]
},
"data": {
"type": "object",
"properties": {
"msgId": {
"type": "string",
"description": "Message identification for binding request with response."
},
"rsp": {
"type": "object",
"properties": {
"orphanedMid": {
"type": "array",
"description": "Orphaned MIDs.",
"items":{
"type":"string",
"description": "Exists [mid, metaId] in midMetaIdMap but no [nadr, mid] in nadrMidMap."
}
},
"inconsistentMetaId": {
"type": "array",
"description": "Inconsistent metadata IDs.",
"items":{
"type":"string",
"description": "Exists [mid, metaId] in midMetaIdMap but no [metaId, metaData] in metaIdMetaDataMap."
}
}
},
"required": [
"orphanedMid",
"inconsistentMetaId"
]
},
"insId": {
"type": "string",
"description": "IQRF GW daemon instance identification."
},
"status": {
"type": "integer",
"description": "Status of operation."
},
"statusStr": {
"type": "string",
"description": "IQRF GW daemon API (general or mType) status in string form."
}
},
"required": [
"msgId",
"rsp",
"status"
]
}
},
"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": "mngDaemon-ImportNadrMidMap-request",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"mType": {
"type": "string",
"description": "Daemon metadata - Import NADR-MID metadata.",
"enum": [
"mngDaemon-ImportNadrMidMap"
]
},
"data": {
"type": "object",
"properties": {
"msgId": {
"type": "string",
"description": "Message identification for binding request with response."
},
"req": {
"type": "object",
"properties": {
"nadrMidMap": {
"type": "array",
"description": "NADR-MID map.",
"properties": {
"nAdr": {
"type":"integer",
"description": "Network Address."
},
"mid": {
"type":"string",
"description": "Module ID."
}
}
}
},
"required": [
"nadrMidMap"
]
},
"returnVerbose": {
"type": "boolean",
"description": "Flag that includes additional parameters in the response."
}
},
"required": [
"msgId"
]
}
},
"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": "mngDaemon-VerifyMetaDataAll-request",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"mType": {
"type": "string",
"description": "Daemon metadata - Verify metadata.",
"enum": [
"mngDaemon-VerifyMetaDataAll"
]
},
"data": {
"type": "object",
"properties": {
"msgId": {
"type": "string",
"description": "Message identification for binding request with response."
},
"returnVerbose": {
"type": "boolean",
"description": "Flag that includes additional parameters in the response."
}
},
"required": [
"msgId"
]
}
},
"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": "mngDaemon-VerifyMetaDataAll-response",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"mType": {
"type": "string",
"description": "Daemon metadata - Verify metadata.",
"enum": [
"mngDaemon-VerifyMetaDataAll"
]
},
"data": {
"type": "object",
"properties": {
"msgId": {
"type": "string",
"description": "Message identification for binding request with response."