User uploads a file (can be as a guest - without registering)
Clicks button after upload is complete
Database items are created through api consumption
User is taken to a new page to display all the results
For the life of me I cannot work out how to consume the arrays in this API’s response to create the related entities. Happy to provide the details via DM on how to connect to the API for testing.
Thanks Nigel - I think I might be missing something though? As I tried to mimic this behaviour but I’m unable to select those arrays to iterate through?
Is my API response incorrectly formatted to work as I expect?
Each time the api is called (with a legitimate payload), I need it to create;
1 “Chats” record
n “Participant” records based on the number of participants in the returned response. (2 in my example response in the first post)
n “Emojis” records based on the number of participants in the returned response. (2 in my example response in the first post)
n “WordUsage” records based on the number of participants in the returned response. (2 in my example response in the first post)
n " ActivityPerDays" records based on the number of participants in the returned response. (2 in my example response in the first post)
n " ActivityPerHours" records based on the number of participants in the returned response. (2 in my example response in the first post)