如何进行Firebase CRUD操作?

时间:2016-11-03 13:53:38

标签: swift firebase firebase-realtime-database

我是swift的新手,Firebase任何人都可以帮助我理解快速代码请求GET,POST,PUT,DELETE请求Firebase。

谢谢

1 个答案:

答案 0 :(得分:0)

使用Alamofire进行HTTP请求

Swift Code

Alamofire.request("https://httpbin.org/get") // method defaults to `.get`

Alamofire.request("https://httpbin.org/post", method: .post)
Alamofire.request("https://httpbin.org/put", method: .put)
Alamofire.request("https://httpbin.org/delete", method: .delete)

请参阅Documentation了解详情

相关问题