added 4 characters in body; edited title
Source Link
Brad Bell
  • 66.7k
  • 4
  • 70
  • 140

How to use the ElementapiElement API endpoint without wrapping it in data object

DefaultBy default the element api wrapsElement API plugin all endpoints in a data object like this:

{ "data": [ { "key" : "value", "key2": "value2" } ]}

But i don't want to wrap this in the data object but like this:

{ "key" : "value", "key2": "value2" }

How to use the Elementapi endpoint without wrapping it in data object

Default the element api wraps all endpoints in a data object like this:

{ "data": [ { "key" : "value", "key2": "value2" } ]}

But i don't want to wrap this in the data object but like this:

{ "key" : "value", "key2": "value2" }

How to use the Element API endpoint without wrapping it in data object

By default the Element API plugin all endpoints in a data object like this:

{ "data": [ { "key" : "value", "key2": "value2" } ]}

But i don't want to wrap this in the data object but like this:

{ "key" : "value", "key2": "value2" }
Source Link

How to use the Elementapi endpoint without wrapping it in data object

Default the element api wraps all endpoints in a data object like this:

{ "data": [ { "key" : "value", "key2": "value2" } ]}

But i don't want to wrap this in the data object but like this:

{ "key" : "value", "key2": "value2" }