[WIP] Refactor D3ApiClient
Add spec for D3ApiClient