Gateway Project Create Deep Entity

Advertisements

The below post is an extension of the project Gateway Project for Expanded Entity Set.

Below is the project date model with association(Navigation) and the artifacts.

Let’s redefine the CREATE_DEEP_ENTITY method of the DPC extension class. By calling the method READ_ENTRY_DATA we get the deep structured data and then mapped to the appropriate work area and tables and we can update the required tables as necessary[ the insert query is not applied below but it can be done].

Let’s use the EXPAND with the Navigation link with the GET operation to find the result.

Here is the deep structure result-

By looking at the above result- we can prepare our POST operation input payload to trigger the CREATE_DEEP_ENTITY method.

Its in JSON format with one header and 2 items.

Set the breakpoint in the CREATE_DEEP_ENTITY method.

See the POST URI – its just the Entityset name.

The request payload-

The input deep structure we get in our internal deep structure- LS_AIRLINE.

The header fields and the navigation component for the ITEMs.

Items-

The status and reason-


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s