Hi folks,
I have got a question about the use of the "models" in the json service description.
A count value has to be extracted from an multi level array. With php the syntax is clear and simple:
$apiResponse[0]['result']['metadata']['globalCounts']['count'];
How can I do this inside the service description json file for this webservice, without just using another php class as "responseClass"?
I tried the following, but I am not sure about the syntax:
...
"models": {
"Count": {
"type": "object",
"items": {
"properties": {
"result": {
"properties": {
"metadata": {
"properties": {
"globalCounts": {
"properties": {
"count": {
}
}
}
}
}
}
}
}
}
}
}
...
Would be great to get some reply.
Thx.