create rest interface