added template for endpoint