How to make the response object that another ViewController's post request returns append to a...
1
1
I am a Swift beginner so apologies. With Siesta, I want to make a post request in a ViewController and then have the Entry object the request returns added to the TableViewController. In my ViewController: EntryAPI.sharedInstance.addEntry() The API code: func addEntry() -> Request { return newEntry().request(.post, json:["foo": "bar"]) } func newEntry() -> Resource { return service .resource("/entry") } After the post request the ViewController does an unwind segue to the TableViewController, of course before the post request completes. I am not sure where in the code I would take the response and call a function in the TableViewController that appends the new Entry object to the entry list. I am not sure if I should pa...