first piece of rest interface