Get Friends List For Player V2
GET/friends/v2/player/:player_uuid/friend
Fetch the friend's list for the Player and their relationship status with those friends.
Note: This API supports etags and will return the etag header when with the response.
Clients can utilize the if-none-match header to avoid having to reload the response if it has not changed.
Request
Path Parameters
Query Parameters
Default value: 0
Possible values: >= 1 and <= 10000
Default value: 50
Header Parameters
If you provide the ETag that matches the current ETag for this resource, a 304 response will be return - indicating that the resource has not changed.
Responses
- 200
- 304
- 400
- 403
- 409
- 422
Successful Response
Response Headers
ETag
string
Used to identify this version of the content. Provide with a get request to avoid downloading the same data multiple times.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
friends
object[]
required
Possible values: [NONE, FRIENDS, FRIEND_REQUEST_SENT, FRIEND_REQUEST_PENDING, FRIEND_REQUEST_DECLINED_BY_OTHER]
An enumeration.
page
object
required
{
"player_uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"friends": [
{
"friends_player_uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"status": "NONE",
"notes": "string",
"last_modified_on": "2024-07-29T15:51:28.071Z"
}
],
"page": {
"page": 0,
"limit": 0,
"total": 0
}
}
Content still has the same etag and has not changed
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
Default value: true
{
"auth_success": true,
"error_code": "string",
"desc": "string"
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
Default value: true
{
"auth_success": true,
"error_code": "string",
"desc": "string"
}
Conflict
- application/json
- Schema
- Example (from schema)
Schema
Default value: true
{
"auth_success": true,
"error_code": "string",
"desc": "string"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}