Adding resource API