Fetch a collection using a POST request?

后端 未结 4 983
栀梦
栀梦 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:40

    Also note that fetch supports Jquery.ajax parameters, so you can easily set type = post in the call.

    Messages.fetch({data: {api_key: 'secretkey'}, type: 'POST'});
    

    For more parameters: http://api.jquery.com/jQuery.ajax/

提交回复
热议问题