[rest] restructured repo architechture