Open APIs

 View Only
  • 1.  TMF637_Product_Inventory_Management [ProductRelationship]

    Posted Nov 06, 2018 17:20
    Dear Forum,
    The field  "<g class="gr_ gr_203 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" id="203" data-gr-id="203">productRelationship</g>" descriptions say "A list of product relationships (ProductRelationship [*]). Represents a relationship between products - which potentially holds an entire product object or a product reference (with partial content)."
    I would like to ask you how you can hold the entire product object because I cannot see this information through Swagger UI. 

    Thanks in advance,

    Best Regards,

    ------------------------------
    António Ribeiro
    Celfocus
    ------------------------------


  • 2.  RE: TMF637_Product_Inventory_Management [ProductRelationship]

    TM Forum Member
    Posted Nov 07, 2018 01:49
    Hi António
    ProductRelationship points to ProductRef, which represents the pointed to product. In the context of a product already in the product inventory this will refer to an existing product, e.g. Product VoIP will have a dependency relationship to Product Broadband, and the ProductRef will have the ID and href to the existing Broadband product.
    In the context of a product that does not yet exist, e.g. inside a ProductOrder where both Broadband and VoIP are being ordered, the ref should be replaced by the actual Product. We have a semantic for this called refOrValue, which should be expanded in the swagger file to ProductRef and Product (the syntax differs between Swagger 2 and Swagger 3). It is possible that this was not done in the model and so the swagger is not correct. If so we will need to fix this.
    @Ludovic Robert may be able to give additional insights.

    Hope it helps.

    ------------------------------
    Jonathan Goldberg
    Amdocs Management Limited
    ------------------------------



  • 3.  RE: TMF637_Product_Inventory_Management [ProductRelationship]

    TM Forum Member
    Posted Nov 08, 2018 10:05
    Hello

    Nothing to add @Jonathan Goldberg - in the productInventory API, the target of a product relationship is an existing product so only id/href attributes

    Best regards


    ------------------------------
    Ludovic Robert
    Orange
    ------------------------------