convert repository tree api call to use json request