updated endpoint creation to use a simplified template for non-model endpoints (those that dont have the "for" clause)