Certain resources are served directly as publicly available files in an AWS S3 bucket, for example, user profile images and game content screenshots. When these items are returned by the API, they are represented as incomplete paths. The API consumer can make an assumption based on context which S3 bucket contains the file. Completing the path, then, is a simple job of prepending the S3 bucket’s URL.
A complete file path is made up of these parts:
protected folder space<idpid>)The folder space represented by protected/<idpid> is unique to each user of course, and uploads within this space are restricted to that user. Users are unrestricted in uploading files to their own space (this may need to be further controlled in the near future), but users cannot delete or overwrite files, even their own.
User avatar images are kept in the media bucket. In production, its URL is:
If a user info request returns an avatar path as follows:
The avatar image will be available at this URL:
prod.media.theendlessmission.comprod.content.theendlessmission.com