#Filter with strapi

3 messages · Page 1 of 1 (latest)

lofty yarrow
#

and this is my Minifig.astro: component

#

and this is the structure of the api : http://localhost:1337/api/lego-minifigures?populate=category : "data": [
{
"id": 162,
"documentId": "dl5zbhko3s2z0h2ncc5himeo",
"name": "Harry Potter - Gryffindor Robe Clasped, Sweater, Shirt and Tie, Black Short Legs",
"createdAt": "2024-11-29T16:06:54.619Z",
"updatedAt": "2024-12-10T13:46:50.953Z",
"publishedAt": "2024-12-10T13:46:50.943Z",
"release": "2021",
"appearance": 2,
"slug": "harry-potter-gryffindor-robe-clasped-sweater-shirt-and-tie-black-short-legs",
"category": {
"id": 10,
"documentId": "lgrusg1be6bx06832s2s84r4",
"name": "Lego Harry Potter",
"createdAt": "2024-11-26T11:25:41.864Z",
"updatedAt": "2024-12-12T12:48:10.752Z",
"publishedAt": "2024-12-12T12:48:10.747Z",
"slug": "lego-harry-potter"
}
},

#

So each minifig has a category linked to it. Do I use this api or do i use the api where the endpoint is categories?