add resource decorator to Api class