Hi Tamal
If your aim is to return the Resource entity, there is no need to extend ResourceRef (realizingRsource) - you can use the expand and depth directives on the GET Product to control how to expand the ResourceRef (see the design guidelines TMF630).
The real challenge is not the Open API payload model, but rather how you populate it in the implementation of your TMF637 Product Inventory API. Somehow you will have to get an accurate state of the resource, either by retrieving just in time from resource inventory, or storing replica in your product inventory and updating the replica according to ResourceCreate/Update events.
Hope it helps
------------------------------
Jonathan Goldberg
Amdocs Management Limited
Any opinions and statements made by me on this forum are purely personal, and do not necessarily reflect the position of the TM Forum or my employer.
------------------------------
Original Message:
Sent: May 25, 2022 03:32
From: Tamal Kanti Panja
Subject: TMF637 product Inventory & realizing resource
I am working on product inventory TMF637 and we have a requirement to show the related msisdn and SIM card details with the current operational status (blocked/active) of the specific resources on which the product is running.
Now I have planned to use the realizingResource under TMF637 and extend the data model as below to avoid calling TMF639 for resource status &MSISDN, SIM Card detail value

My question is the approach valid or do we need to use TMF639 to get the operational status of the resources ?
------------------------------
Tamal Kanti Panja
Tata Consultancy Services
------------------------------