Using API annotations to get resources from API