Hi Arko
I take it you are querying the Resource Inventory (TMF639) using GET with no ID.
The query string would look something like this: ?resourceRelationship.resource.@type=pole
But please check TMF630 (design guidelines) for exact syntax of the query string.
P.S. in general we recommend that class names (type names) use camel case with initial capital letter, so
Pole would be more appropriate than
pole (this aligns with conventions in languages such as Java, C++, etc.).
------------------------------
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: Jun 20, 2022 06:13
From: Arko Chakravarty
Subject: Resource Inventory Management (TMF369) : How to filter according to resourceRelationship object
Hi
Can any one please tell me how to filter according to id present in resource relationship entity. Example I need to get all resource object which has resourceRelationship.resource.@type="pole"
"resourceRelationship": [{
"relationshipType": "contains",
"resource": {
"id": "44",
"href": "https://host:port/geographicSiteManagement/v4/",
"@type":"pole"
}
}
],
------------------------------
Arko Chakravarty
VCT International
------------------------------