Update template for new sprest api