Implemented connection from API to Server