added rest architecture