first version of rest get