set up api from angular