templates for REST API generation