I need to expose an API A which internally uses another API B. API B accepts an array of product codes and returns their information. That array could have any length but API B will return information of only first 10 product codes and silently discard the rest, i.e. doesn't throw an exception or return an error.
Now while designing API A, how should I go about it? Should I also discard the extra elements silently or throw an exception or return partial information with an error?
I can also split the input in batches and call API B multiple times from API A but each call to API B has to wait for 1 second.