inject ApiClient to server realm