I have an issue with this approach that might be related to how api:s handle stuff differently.
The endpoint for my api request delivers a list, an array, containing a few objects. But sometimes this array is empty, like , but still identifies as a completed request (http status 200 ok).
So my question is now: How can I create a condition in where I check if the array itself is empty rather than if an object in the array is empty?
In my first attempt I made a condition like this: "text of showcase_texts Equals but as text itself does not exist when the array is empty the condition does not seem to work.
Is it wrong or unorthodox for an api to return an empty array? Should it rather return a status 404?
Either way it would be interesting to know if it is possible to actually make conditions that check wether the array is empty or not. Perhaps some kind of count?