GET user/{userId}/following

Get the list of users this user is following; returns the public user info representation for each.

Example

GET /api/v1/user/66a5db1f-2785-498d-9068-e24ddbba03f2/following HTTP/1.1
Accept: application/json
Authorization: Bearer ...
----------------------------------------
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
ETag: ...

[
  {
    "id": "e2de7d16-da33-4d7a-81fe-2ca520b348d8",
    "username": "tcoles+test103",
    "avatar": null,
    "emblem": null,
  },
  {
    "id": "d9fdc918-fb1f-43ba-a27a-d834619404fe",
    "username": "tcoles+test104",
    "avatar": "protected/us-west-2:b3726d17-a16d-4f5b-a4b9-5ac097dd4b26/2a41fe93-33a1-4239-8359-a3e5bce306d7.png",
    "emblem": null,
    "profile": "Test4"
  },
  {
    "id": "ce444aa0-7813-4790-aeaf-c974c7b8dc1e",
    "username": "tcolesdev",
    "avatar": "protected/us-west-2:ce444aa0-7813-4790-aeaf-c974c7b8dc1e/c90ecab2-b3fc-4c24-bc5b-e93eb9a1733c.png",
    "emblem": null,
  }
]

Security

Authentication is required for this method, and access is restricted to the user themself.

URL Parameters

NameDescriptionValue
userIdthe ID of the user as a GUID with dashesstring

Query Parameters

NONE

Request Body

NONE

Response

Successful responses are code 200 with data in the response body. Error responses are standard.

Response Body

The response body is an array of UserInfo objects.

UserInfo

NameDescriptionValue
idthe ID of the user as a GUID with dashesstring
usernamethe user's username, which is uniquestring
avatara media path to the user's avatar image file; will be null if no avatar has been setstring or null
emblemthe GUID of an emblem to display with the user's avatar, or null if none is selectedstring or null
profilea text description of this user, if public optionalstring