These docs are for v20.3.44. Click to read the latest docs for v20.3.186.

Discussions

Ask a Question
Back to All

Forcing Rest to use GenericEntityObject when SQL table name matches object name

If I request /api/Name I will receive a paged result that is a list of type "GenericEntityData". If I request /api/Party I will receive a list of type "PartyData". I can view the same data two different ways because the business object name does not match the SQL table name. In the case of a table like "CertificationProgram" though the object name matches the SQL name. If I request /api/CertificationProgram I will get back a "CertificationProgramData" object. How can I make the request in a way that it forces it to return a "GenericEntityData" object for the CertificationProgram table?

My question then extends out to the Put and Post verbs. How do I perform these actions against the GenericEntityObject instead of the SOA object that shares the same name?