draft implemention of REST OA API