We have a Rest API which contains in its assembly only an 'invoke' to an external Rest service without any mapping, such that the API will act only as a gateway.
If the external service is called directly (e.g. through SoapUI), it returns a JSON response which contains an array of objects. The array is nested at a 3 level depth starting from the root object.
Instead, when we call our API with the same request, we get a different response: in the place of the array, we get an object that corresponds to the last object of the array; the other objects of the array are not present in the response.
Is there a way to fix this problem? Thanks.