Most of rest interface in place