Skip to content
Advertisement

Guzzle service description json array

How can I set parameter in Guzzle service description to be a json array? This is what I have tried but is not working:

JavaScript

Call:

JavaScript

The json correct json structure to be send is this:

JavaScript

Advertisement

Answer

You have to write nested definitions as per JSON schema validation rules.

I had done this with XML based requests. Let me try this in JSON based data. Hope this helps:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement