Rest templating