Get business details
Description#
Allows clients to get expanded details regarding a specific business and view their merchandise.
Mechanism#
- fetch the business entity Business data and merchandise entity merchandise .
- Append an indication if the business is favorited by the requesting client.
- Append a sum of all the business review entityreviews.
- Append an average of all the business review entityreviews' Entity propertyscore.
Output#
- An object with the following data:
- business entity Business data.
- Business merchandise entity merchandise .
- Boolean indicating if the business has been made a favorite by the client.
- A number indicating the sum total of the number of review entityreviews the business has.
- A number indicating the average score from all the review entityreviews the business has.