Get Avatars
Returns avatars list
GET
/auth-service/v1/avatars
Headers
Name
Value
Content-Type
application/json
Body
Name
Type
Description
page
number
Page number(Default 1)
per_page
number
Items per page (Default 25)
Response
{
"data": [
{
"id": 2,
"name": "test2",
"image": {
"name": "beach",
"file_name": "01JRATB7PPGWGY0DZAFWJNF7AW.jpg",
"mime_type": "image/jpeg",
"url": "https://cdn.sprutgaming.com/dev/2/01JRATB7PPGWGY0DZAFWJNF7AW.jpg",
"custom_properties": []
}
},
{
"id": 1,
"name": "test",
"image": {
"name": "mess",
"file_name": "01JQY9YCGHRD923G9CW00BAF5H.jpg",
"mime_type": "image/jpeg",
"url": "https://cdn.sprutgaming.com/dev/1/01JQY9YCGHRD923G9CW00BAF5H.jpg",
"custom_properties": []
}
}
],
"links": {
"first": "http://127.0.0.1:8002/auth-service/v1/avatars?page=1",
"last": "http://127.0.0.1:8002/auth-service/v1/avatars?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "http://127.0.0.1:8002/auth-service/v1/avatars?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "http://127.0.0.1:8002/auth-service/v1/avatars",
"per_page": 25,
"to": 2,
"total": 2
}
}
{
"error": "Invalid request"
}
Last updated