{ "title": "metadatadb.basic", "version": 0.3, "description": "Simple metatdata database that can be queried about tags associated to devices", "lang": "en", "documentation": "http://recherche.telecom-bretagne.eu/xaal/documentation/", "ref": "http://recherche.telecom-bretagne.eu/xaal/documentation/metadatadb.basic", "license": "Copyright Christophe Lohr Telecom Bretagne 2014 - Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.", "extends": "any.any", "methods": { "getTagsByDevice": { "description": "Get tags associated to a device", "parameters": { "device": { "description": "The address of the device", "unit": "", "direction": "in", "type": { "$schema": "http://json-schema.org/schema#", "type": "string", "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" } }, "tags": { "description": "Tags associated to the device", "unit": "", "direction": "out", "type": { "$schema": "http://json-schema.org/schema#", "type": "object" } } }, "relatedAttributes": [ ] }, "getDevicesByTag": { "description": "Get devices associated to a tag", "parameters": { "tag": { "description": "A tag name and its value", "unit": "", "direction": "in", "type": { "$schema": "http://json-schema.org/schema#", "type": "object" } }, "devices": { "description": "Devices associated to the tag", "unit": "", "direction": "out", "type": { "$schema": "http://json-schema.org/schema#", "type": "array", "items": { "type": "string", "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" } } } }, "relatedAttributes": [ ] } } }