0.0.2 • Published 7 years ago

@vivoil/asset-service v0.0.2

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
7 years ago

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)