api generation templates