Fetch a collection using a POST request?

后端 未结 4 951
栀梦
栀梦 2020-12-30 21:19

I have managed to work with REST API\'s to fetch() data where the urls contain minimal parameters (and use GET).

How would one retrieve a c

4条回答
  •  迷失自我
    2020-12-30 21:26

    Backbone.sync is the function used to interact with the server via your models. You can provide your own implementation that issues a POST request for the 'read' method instead of GET. See http://documentcloud.github.com/backbone/#Sync

提交回复
热议问题