Open APIs

 View Only
  • 1.  TMF 669 Party Role Management

    TM Forum Member
    Posted Jan 18, 2022 09:56
    Hi All,
    I have a question related to DELETE operation in Party Role Management API, if this action should be available only for some statuses like e.g. "draft" of party role or it is available always.
    If always what exactly does it mean for related entities for this party role?

    ------------------------------
    Anna Kozłowska-Jarosz
    Comarch S.A.
    ------------------------------


  • 2.  RE: TMF 669 Party Role Management

    TM Forum Member
    Posted Mar 15, 2022 06:47
    Hi Anna
    From Open API perspective, we try to enable business, not restrict it. So at the level of user guide the APIs don't in general proscribe operations such as DELETE. It would be up to a specific implementation of an API to give conditions as to when e.g. a Party Role can be deleted.
    Regarding the related entities pointing to a potentially deleted entity, let's consider Product Order as a more plausible use case. We have Product (inventory) that has a reference to Product Order (e.g. the order that created the product, or perhaps a pending order on the product). Orders might be archived and deleted after a certain time interval, to optimize storage space. So if a product is retrieved it might have orphan references. This can be dealt with in a number of ways:
    • As part of deleting an entity you scan all the entities that refer to it; this could be quite expensive and you may not even have control of all the places that the entity reference has reached
    • As a consumer, be resilient if entity refs point to entities that cannot be retrieved.
    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: TMF 669 Party Role Management

    TM Forum Member
    Posted Mar 15, 2022 08:12
    Hello Jonathan,
    Yes, true in some cases in can be very complex and can be solved case by case, however test for delete operation is the part of ctk, that is why we wonder if we should "assume sth" for test purpose so e.g. allow for delete operation only for draft party roles?
    Thanks for your help:)
    BR, Anna

    ------------------------------
    Anna Kozłowska-Jarosz
    Comarch S.A.
    ------------------------------



  • 4.  RE: TMF 669 Party Role Management

    TM Forum Member
    Posted Mar 15, 2022 08:40
    I very much doubt that the CTK goes to that level of detail, but the Postman scripts are open and you can see whether they have such a restriction.

    ------------------------------
    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.
    ------------------------------



  • 5.  RE: TMF 669 Party Role Management

    TM Forum Member
    Posted Mar 18, 2022 03:41
    Yes, thank you for advice.
    BR, Anna

    ------------------------------
    Anna Kozłowska-Jarosz
    Comarch S.A.
    ------------------------------