Open APIs

 View Only
  • 1.  TMF641. ServiceRefOrValue and serviceSpecification

    TM Forum Member
    Posted Aug 27, 2020 14:24
    Hi all,

    The following is not clear from both 641 and 641B
    - service (ServiceRefOrValue) :  mandatory attributes not described at all
    - service.serviceSpecification : how can it be optional on the service. Please, provide an example.

    @Ludovic Robert​, I hope you can help.

    Thanks

    ------------------------------
    Igor Veliev
    Netcracker Technology
    ------------------------------


  • 2.  RE: TMF641. ServiceRefOrValue and serviceSpecification

    TM Forum Member
    Posted Aug 28, 2020 03:13
    Hi Igor,

    We use the class ServiceRefOrValue meaning that you can pass either a service reference (via id) or a service description (by value) - this class feature a allOf serviceRef and service.

    Depending on the action item the requested service attributes are not the same
    • for a new service (item action add) we expect to get a service value and in this case the serviceSpecification.id must be there(but not the service.id)
    • For a service modification(item action modify) or termination (action delete) the serviceSpecification.id is not required but service.id is.
    So this is conditionnal: service.id is not fill for add, serviceSpecification.id is not fill in change or delete request --> we cannot enforce a mandatory rule in the API.

    Moving forward with OAS (swagger 3.0) this is probably something that we'll improve. Indeed we can leverage oneOf to have the 2 classes in the class ServiceRefOrValue and managethe cardinality accordingly.

    Hope it helps

    Ludovic


    ------------------------------
    Ludovic Robert
    Orange
    My answer are my own & don't represent necessarily my company or the TMF
    ------------------------------



  • 3.  RE: TMF641. ServiceRefOrValue and serviceSpecification

    TM Forum Member
    Posted Aug 28, 2020 05:33

    Thank you for the quick reply.

    You're right, of course, that the specId might be taken from the service, but when it is provided in the request, it doesn't need to get all the mentioned services from service inventory prior to building the entire Service Order orchestration process flow which is usually service specification(s) sensitive.

    So it's not required but better to have even for modify and delete cases.



    ------------------------------
    Igor Veliev
    Netcracker Technology
    ------------------------------