update rest api for iosapp model