Commit 4125bf96 by Daniel Friedman Committed by Andy Armstrong

Add documentation for is_active and profile_image

parent e710a5b2
...@@ -82,22 +82,23 @@ class AccountView(APIView): ...@@ -82,22 +82,23 @@ class AccountView(APIView):
* bio: null or textural representation of user biographical * bio: null or textural representation of user biographical
information ("about me"). information ("about me").
* profile_image: a dict with the following keys describing * is_active: boolean representation of whether a user is active.
* profile_image: JSON representation of a user's profile image
information. The keys are:
the user's profile image: the user's profile image:
* "has_image": true if the user has a profile image * "has_image": boolean indicating whether the user has
* "image_url_full": an absolute URL to the user's full a profile image.
profile image * "image_url_*": absolute URL to various sizes of a user's
* "image_url_large": an absolute URL to a large thumbnail profile image, where '*' matches a representation of
of the profile image the corresponding image size such as 'small', 'medium',
* "image_url_medium": an absolute URL to a medium thumbnail 'large', and 'full'. These are configurable via
of the profile image PROFILE_IMAGE_SIZES_MAP.
* "image_url_small": an absolute URL to a small thumbnail
of the profile image
* requires_parental_consent: true if the user is a minor * requires_parental_consent: true if the user is a minor
requiring parental consent. requiring parental consent.
> For all text fields, clients rendering the values should take care For all text fields, clients rendering the values should take care
to HTML escape them to avoid script injections, as the data is to HTML escape them to avoid script injections, as the data is
stored exactly as specified. The intention is that plain text is stored exactly as specified. The intention is that plain text is
supported, not HTML. supported, not HTML.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment