Refactoring the APIs to return all details in one request.