implemented all REST API (v1) routes