Syntax sugar for web APIs