0.0.2 • Published 7 years ago
@vivoil/asset-service v0.0.2
asset-service
Fornisce api per la registrazione di un nuovo asset, la modifica del suo stato e l'interrogazione dello stato di un asset.
##INSTALL
npm install @vivoil/assert-service
Usage
const assetService = require('@vivoil/asset-service')
var service = assetService()
Adding an asset
service.add({name}, callback)
Updating an asset
service.update({id, state}, callback)
Queryiung an asset state
service.query({id}, callback)