added api call for angular