cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Hi, need help to output multiple records to api endpoint response.

darren-chow
Deputy Chef I
Deputy Chef I

Hi, need help to output multiple records to api endpoint response.

7 REPLIES 7

darren-chow
Deputy Chef I
Deputy Chef I

my response schema looks like this:


[

{

"label": "Opportunity",

"type": "object",

"name": "Opportunity",

"properties": [

{

"control_type": "text",

"label": "Name",

"type": "string",

"name": "name"

},

{

"name": "amount",

"type": "string",

"optional": false,

"control_type": "text"

},

{

"name": "description",

"type": "string",

"optional": false,

"control_type": "text"

}

]

},

{

"label": "Issue",

"type": "object",

"name": "Issue",

"properties": [

{

"control_type": "text",

"label": "Name",

"type": "string",

"name": "name"

}

]

}

]

roy-deckers
Deputy Chef I
Deputy Chef I

hi Darren

Can you try this one:


[

{

"name": "Opportunity",

"type": "array",

"of": "object",

"label": "Opportunity",

"optional": false,

"properties": [

{

"control_type": "text",

"label": "Name",

"type": "string",

"name": "name",

"optional": true

},

{

"control_type": "text",

"label": "Amount",

"name": "amount",

"type": "string",

"optional": true

},

{

"control_type": "text",

"label": "Description",

"name": "description",

"type": "string",

"optional": true

}

]

},

{

"name": "Issue",

"type": "array",

"of": "object",

"label": "Issue",

"optional": true,

"properties": [

{

"control_type": "text",

"label": "Name",

"type": "string",

"name": "name"

}

]

}

]

Thanks.. this solves it!