Adding resource_tpl and os_tpl for query interface endpoint