implementet get request to rest server