build up basic Rest API