Hi guys. I created a Post content type and another one with the Author’s name and pic.
My Posts api response is being fetched with ?populate=* and this is what I’m receiving as response.
The author is supposed to have an image as well, but it’s not being fetched like the author’s API
{
"data": {
"id": 1,
"attributes": {
"Nome": "Talles",
"createdAt": "2022-07-05T01:17:27.766Z",
"updatedAt": "2022-07-05T01:17:27.766Z",
"Foto": {
"data": {
"id": 4,
"attributes": {
"name": "talles.jpg",
"alternativeText": "talles.jpg",
"caption": "talles.jpg",
"width": 600,
"height": 600,
"formats": {
"thumbnail": {
"name": "thumbnail_talles.jpg",
"hash": "thumbnail_talles_0d6f4c131d",
"ext": ".jpg",
"mime": "image/jpeg",
"path": null,
"width": 156,
"height": 156,
"size": 6.39,
"url": "/uploads/thumbnail_talles_0d6f4c131d.jpg"
},
"small": {
"name": "small_talles.jpg",
"hash": "small_talles_0d6f4c131d",
"ext": ".jpg",
"mime": "image/jpeg",
"path": null,
"width": 500,
"height": 500,
"size": 36.67,
"url": "/uploads/small_talles_0d6f4c131d.jpg"
}
},
"hash": "talles_0d6f4c131d",
"ext": ".jpg",
"mime": "image/jpeg",
"size": 44.11,
"url": "/uploads/talles_0d6f4c131d.jpg",
"previewUrl": null,
"provider": "local",
"provider_metadata": null,
"createdAt": "2022-07-05T01:17:24.673Z",
"updatedAt": "2022-07-05T01:17:24.673Z"
}
}
},
"posts": {
}
}
},
"meta": {}
}
Does anyone have any idea why?