update example app and REST API
update example app