@@ -548,6 +542,8 @@ class ViewsJsonQuery extends QueryPluginBase {
$options['json_file']=['default'=>''];
$options['row_apath']=['default'=>''];
$options['headers']=['default'=>''];
$options['request_method']=['default'=>'get'];
$options['request_body']=['default'=>''];
$options['single_payload']=['default'=>''];
$options['show_errors']=['default'=>TRUE];
...
...
@@ -579,6 +575,29 @@ class ViewsJsonQuery extends QueryPluginBase {
'#description'=>$this->t("Headers to be passed for the REST call.<br />Pass the headers as JSON string. Ex:<br /><pre>{"Authorization":"Basic xxxxx","Content-Type":"application/json"}</pre><br />.Here we are passing 2 headers for making the REST API call."),
'#description'=>$this->t('The POST request body to the REST call.<br/>Pass the form values as JSON string. Ex: <br/><pre>[{"name":"item_key","contents":"item value","headers":{"Content-type":"application/json"}}]</pre> See <a href="https://docs.guzzlephp.org/en/stable/request-options.html#multipart" target="_blank">the documentation for GuzzleHttp multipart request options</a>.'),
];
$form['single_payload']=[
'#type'=>'checkbox',
'#title'=>$this->t('Response contain single node.'),
...
...
@@ -723,7 +742,24 @@ class ViewsJsonQuery extends QueryPluginBase {