How would I upload an array of Acronyms? For example, to create test data remotely from the iOS app, what request changes need to be made on the iOS app and what controller/API changes need to be made to the cloud app?
Hi @gonzalo
So to upload an array of acronyms you can create a new route in the Vapor app that accepts [CreateAcronymData]
. Then you can loop through each one and turn it into an array and save them (see how multiple new categories are saved in the website controller). For the iOS side, you need a new UI to create multiple ones, but the request stuff should be fairly simple - just send [CreateAcronymData]
instead of CreateAcronymData
. Hope that helps!