adding template for rest.