I’m just learning Webix and I like what I see!
I’m trying to use a Rest API running on Amazon using their API Gateway. For REST puts, the API expects the JSON in the request body. But Webix is sending a form-encoded request body. How can I configure Webix to send a JSON request body?
Thanks in advance!
Hi, you can customize the request headers as:
webix.ajax().headers({ "Content-type":"application/json" }).put(url, data, callback);
And you can extend the rest proxy (provided that you are using it) in the following way: http://webix.com/snippet/cee38ee8
rest