Rest service example instead of socket