fix template files
Change rest endpoint