Search code examples
swift3siesta-swift

Swift Siesta Get and post


I am new to Siesta. How can I get the entire array and pass into my model? Besides, how can I post with params? In their documentation I couldn't find any of this.


Solution

  • I'm new to siesta as well. I was able to find documentation about requests here http://bustoutsolutions.github.io/siesta/guide/requests/

    Basically you'll setup your resource and then call:

    resource.request(.post, json: ["foo": [1,2,3]])