Help with a Rest Sensor (Grocy)

Hello Guys,

I wonder If someone could help me.

Im trying to export a list of all items stored in my Grocy products table into a sensor.

The API call seems to work and it is returning correct data however it is limiting it to the first record, how can I go about getting it to loop through all records and populate these attributes?

 - platform: rest
    name: Grocy - Stock - Min Amount
      GROCY-API-KEY: !secret grocy_api
    value_template: '{{ }}'
      - id
      - name
      - min_stock_amount

i’m hoping to achieve something like this, taken from one of the official integration sensors:


What is the actual JSON content returned by that call?