README.md

April 4, 2019 ยท View on GitHub

The Account service implements a REST service that returns the user profile information such as movie subscription and AD preference.

User:

For simplicity, the implementation hard-coded a few users and their profile information as follows:

UsernameSubscriptionAD Preference
guestbasicany
20 popular namesuniversalsports or family randomly selected at startup
othersuniversalany

Subscription:

The following subscription levels are supported:

SubscriptionDescription
basicPlay three videos out of the video archive.
universalPlay all videos in the video archive.

AD Preference:

The supported AD preferences are as follows:

PreferenceDescription
anyNo preference.
sportsPrefer to see sport related AD.
familyPrefer to see family product AD.

Interface:

The Account service exposes the following interface on port 8080:

PathDescription
GET /acct?name=<user>The end point returns the user profile information.