connection rest server-client