added an endpoint for entity details and an API client