Hey Folks,
I'm not sure, but if I understood the proposal correctly, the response of the API could then look like this:
[
{
"id": "1",
"href": "http://inventory/tmf-api/resourceInventory/v4/resource/1",
"name": "LR_1",
"@type": "LogicalResource",
"@baseType": "Resource",
"resourceRelationship": [
{
"relationshipType": "IsContainedIn", // Not sure if this is the correct and if we would need this.
"href": "http://inventory/tmf-api/resourceInventory/v4/resource/3",
"@type": "ResourceRelationship",
"@referredType": "ResourceCollection"
}
]
},
{
"id": "2",
"href": "http://inventory/tmf-api/resourceInventory/v4/resource/2",
"name": "LR_2",
"@type": "LogicalResource",
"@baseType": "Resource",
"resourceRelationship": [
{
"relationshipType": "IsContainedIn", // Not sure if this is the correct and if we would need this.
"href": "http://inventory/tmf-api/resourceInventory/v4/resource/3",
"@type": "ResourceRelationship",
"@referredType": "ResourceCollection"
}
]
},
{
"id": "3",
"href": "http://inventory/tmf-api/resourceInventory/v4/resource/3",
"name": "A ResourceCollection",
"@type": "ResourceCollection",
"@baseType": "Resource",
"resourceRelationship": [
{
"relationshipType": "HasCompoundResources",
"href": "http://inventory/tmf-api/resourceInventory/v4/resource/1",
"@type": "ResourceRelationship",
"@referredType": "LogicalResource"
},
{
"relationshipType": "HasCompoundResources",
"href": "http://inventory/tmf-api/resourceInventory/v4/resource/2",
"@type": "ResourceRelationship",
"@referredType": "LogicalResource"
}
]
}
]
Is this going in the right direction?
Cheers,
Jan
------------------------------
Jan Lemmermann
OSS Lead Architect
EWE TEL GmbH
------------------------------
Original Message:
Sent: Feb 23, 2021 07:58
From: Pierre Robitaille
Subject: TMF 639: Resource inventory management API extension
[duplucate reply removed]