create template to auto-generate API endpoint code and add it to code generator script