I am very new Strapi and most of the research I have done is the older version. My issue here is that I have created the following content type:
notifications: [
title: "Sample Title",
image: Media upload image
]
So its very basic, however when I test out the endpoint for notifications http://localhost:1337/api/notifications I dont receive any reference to the image attribute.
My first day at Strapi school and had the same issue. Can someone kindly explain why on earth we need to populate this? My public Role has find and findone enable. Cos other tutorials like this donāt need to ā Building Custom APIs With Strapi - YouTube
I donāt need the whole image populate, only a reference. To me having at least a reference to the image id would be the strict minimum, itās crazy that by default the field is simply missing.
There is a parameter you need to pass on the query in order to receive relations and media, it is called āpopulateā
For example: https:localhost:1337/api/posts?populate=*
Note that between v3 and v4 the API path for content types has changed, and now you need to add /api/ between the content type endpoint and the root address.