Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Gets the response as json for all paginated requests as an array, but also provides the ability to Image Removedto concatinate arrays of the responses to a single list of items.

This opens up for other systems like insight to use iHub as data provider to external sources.


The JSON Path

path= must be a valid json path to the array of items.

example  if the response after a paginated request looks like this:

Code Block
[{
   "items":[{"i":"a"},{"i":"b"},{"i":"c"}]

}, {
"items":[{"i":"d"},{"i":"e"},{"i":"f"}]

}]


Then providing a rest/restfulintegrator/1.0/data/application/<id>?path=$.items will make this result

Code Block
[
{"i":"a"},{"i":"b"},{"i":"c"},{"i":"d"},{"i":"e"},{"i":"f"}
]