We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Parent - child data in oic

Accepted answer
20
Views
4
Comments
edited Oct 20, 2020 11:03AM in Integration 4 comments

Content

Hi Experts,

I have two CSVs as attached and both the CSV has a common attribute id. I want to create a REST API that will read both the files, combine the results, and expose as REST API response. Like below:


{
  "id" : "1",
  "name" : "ankur",
  "contact" : [ {
    "number" : "111999"
  }, {
    "number" : "111888"
  },{
  "id" : "2",
  "name" : "jain",
  "contact" : [ {
    "number" : "222999"
  }, {
    "number" : "222000"
  },{
  "id" : "3",
  "name" : "ankit",
  "contact" : [ {
    "number" : "333000"
  }
   ]
} ]

Can we achieve this somehow? I tried <<xsl:key> but it's not working. Attaching the iar file also.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!