I have a requirement where we will receive a parent product id and List of childProductInfo from other system.
Our task in SFDC
will be to find the existing parent product (1st input parameter : string parentProdId
) and search for existing child product (2nd input parameter : List<childProductInfo>
).
If we will find all incoming child parameters are there in SFDC then its ok , if there are indeed some new feed is coming, then insert
new products with the parameters given as input.
I have implemented this requirement as SOAP web service
.
But, I want to implement this as REST API
.
I know we have to write a global static post method (@HttpPost
), but can we pass a List
as a parameter
?