Add new example for using register/edit api

Please help me review and merge