Adding api dependency