I have tried to make this question as clear as possible.
The purpose of my questions is how to fill an array for my API endpoint when I have has_many_attached
has_many_attached