# Model
# Static Methods
# crud
crud(): ServiceGet CRUD Service instance.
const service = User.crud()
# Static Properties
# apiPath
apiPath StringSets the API path if different than entity value
Model.apiPath = 'models'
# Instance Methods
# apiPath
apiPath(path = null): StringReturn the API path for the instance
const user = User.find(1) console.log(user.apiPath()) // users/1
# delete
delete(path = null, keys = null, config = null): PromiseDeletes the instance in the API and the Store.
const user = User.find(1) user.delte()
# pickKeys
pickKeys(keys = Object.keys(this.$toJson())): ArrayDeletes the instance in the API and the Store.
const user = User.find(1) console.log(user.pickKeys()); // ['first_name','last_name', ...]
# save
save(path = null, keys = null, config = null): PromiseSaves the instance in the API and the Store.
const user = new User({first_name:'toto', last_name: 'foo'}) user.save()
# update
update(path = null, keys = null, config = null): PromiseUpdates the instance in the API and the Store.
const user = User.find(1) user.first_name = 'changed' user.update()