Rest server beginings