Repetitive embedded page in REST service request
Embedded page is created repetitively in a Service-REST request.
Steps to Reproduce
- Create a REST service with the POST method
- Run the service. The page structure is created at runtime.
Classless page is created in the Clipboard when an inappropriate request body is sent to the Service-REST .
Actual Body Request
A pageless object, 'Person', is created in the Clipboard.
ResolutionHere's the explanation for the reported behavior:
JSON mapping in Service-REST rule creates virtual properties. If it does not find a matching physical property, a classless page is created. To avoid classless pages, the page property configured in the Service-REST rule must include the data model that is created in it. This data model must be identical to the incoming JSON keys hierarchy.