added api for rest calls