Open APIs

 View Only
  • 1.  Resource Inventory Management (TMF369) : How to delete resourceRelationship object

    TM Forum Member
    Posted 20 days ago
    Edited by Arko Chakravarty 19 days ago
    Hi Team,
    Can you please tell me how to delete only resourceRelationship from resource inventory.
    Is there is no  delete relationship option in tmf.

    Deletes a Resource
    /resource/{id}


    ------------------------------
    Arko Chakravarty
    VCT International
    ------------------------------


  • 2.  RE: Resource Inventory Management (TMF369) : How to delete resourceRelationship object

    TM Forum Member
    Posted 19 days ago
    Hi Arko
    You would do a PATCH in TMF639, probably using JSON Patch semantics to find and delete the relevant relationship in the Resource entity.
    PATCH merge could also be used but it's more hairy to define the semantics for deleting one item from a list.
    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.
    ------------------------------



  • 3.  RE: Resource Inventory Management (TMF369) : How to delete resourceRelationship object

    TM Forum Member
    Posted 15 days ago
    Hi Jonathan,
    Thanks for your response. Can you please tell me how to update the relationship  . I need to remove id=45 object from resourceRelationship array how to remove that from resourceRelationship.

    Example:
    "resourceRelationship": [{
    "relationshipType": "contains",
    "resource": {
    "id": "44",
    "href": "https://host:port/geographicSiteManagement/v4/",
    "@type":"pole"
    }
    },
    {
    "relationshipType": "contains",
    "resource": {
    "id": "45",
    "href": "https://host:port/geographicSiteManagement/v4/",
    "@type":"pole"
    },
    {
    "relationshipType": "contains",
    "resource": {
    "id": "46",
    "href": "https://host:port/geographicSiteManagement/v4/",
    "@type":"pole"
    }

    ],

    ------------------------------
    Arko Chakravarty
    VCT International
    ------------------------------