expose rest template for extending classes

close #60
you have some strange formatting here