Open APIs

 View Only
  • 1.  Attribute name inconsistencies

    TM Forum Member
    Posted Sep 09, 2024 11:27

    While working for oneof the business use case, when i was referring to TMF 717: Customer360

    object MediumCharacteristic has an attribute postCode (camel case).

    But the same attribute in TMF673 - GeographicAddress is represented as postcode (small case). 

    There are multiple APIs that uses these objects by reference and by value and hence carrying over this inconstancy in them.

    looking at all other attributes camel-case seems to be right way.

    thoughts??



    ------------------------------
    Amol Mozarkar
    Solution Architect
    Member of Global Association of Enterprise Architects (globalaea.org)
    Bell Canada
    ------------------------------


  • 2.  RE: Attribute name inconsistencies

    TM Forum Member
    Posted Sep 10, 2024 06:51

    you can read the API user guide (TMF 630).

    2.3  Resource Naming Convention

    Names in URI (tasks, individual resources, etc.) MUST be camel case or lower case.

    e.g. /account/billSummary/billDetail or /account/billSummary/billdetail



    ------------------------------
    Kind regards,

    Matthieu Hattab
    Lyse Platform
    ------------------------------



  • 3.  RE: Attribute name inconsistencies

    TM Forum Member
    Posted 30 days ago

    Hi Matthieu,

    Yes, you are right, the TMF 630 contains the Resource Naming Convention subsection. But question was not about resource naming but about attribute naming. And, unfortunately, TMF 630 does not provide any suggestions for attribute naming.

    Based on the fact that the TMF OpenAPIs de-facto use camelCase for attribute naming, I would suggest renaming the "postcode" attribute (lowercase notation) to "postCode" (camelCase notation) in the TMF 637 Geographic Address Management API to be consistent with other TMF APIs. At least it can be done for the v5 of the TMF 637 API specification.



    ------------------------------
    Yurii Yushchak
    System Manager
    Ericsson Inc.
    ------------------------------



  • 4.  RE: Attribute name inconsistencies

    TM Forum Member
    Posted 30 days ago

    it's the same guideline. camelcase is also used for attributes.



    ------------------------------
    Kind regards,

    Matthieu Hattab
    Lyse Platform
    ------------------------------