I have a requirement in which the system to which my REST service connects can send the request json object in two formats/ways.
1. can send a page (that will have some single value properties in it) or
2. can send the pagelist (that will have many pages of in it).
Now if I have to map such request where there could be json page object coming in some cases and in other cases, the pagelist json object, how do I create the request property in the integration class? Should it be of type Page? or Pagelist? Tell me a solution in which my service should be able to process both kinds of objects, page and pagelist.
***Edited by Moderator Marissa to change type from General to Product, added Product details and Capability tags***