How to create Import Mapping for a array of n number of Ids

0
Hi Team, I'm creating an API to get the details related to multiple Ids. Since the input data would be huge we have created a POST endpoint to handle the incoming data in JSON body object. The request was intended to look like this : {     "Ids": [         "1",         "2",         "3"     ] } here Ids can be in a range between 1 and n. But the import mapping is not able to handle such structure. Eventually I ended up creating an incoming request like this. Here my input mapping is a list of Ids. In this was I can map every element to the request. [     {         "Id": "1"     },     {         "Id": "2"     },     {         "Id": "2"     } ] The main drawback of this approach would be the huge amount of data which would be sent across the network due to extra attribute for each Id. Can you suggest a better approach so that the request JSON would look less bulky like intended. {     "Ids": [         "1",         "2",         "3"     ] }
asked
0 answers