rework http/rest api