Hi Varsha M
I think there's some confusion in your question. You said you want to expose a REST service, but Import Mapping is used when consuming a REST service, not when exposing one. and you are aksing for import mapping? things got mixed up.
If you are searching to expose or consume kindly check the mendix documentation.
I hope this helps
If your REST response contains multiple Patient objects, then the Root element should represent the collection, not a single Patient object.
The common approach is:
PatientResponse) as the Root.Patient entity.Patient objects.If your response is simply an array of patients (without a wrapper object), you can leave the root unmapped and configure the repeating element to create a list of Patient objects.
It would be helpful if you could also share:
That will make it easier to suggest the correct mapping.
Kindly mark this as the accepted answer if it helps.