added a template for the rest api