create rest client structure