Open APIs

 View Only
  • 1.  Extension of Open API's

    Posted Dec 04, 2020 10:25
    Hi,

    I am working on Open API i found few attributes common on each API like @baseType , @schemaLocation , @referredType, @type etc


    I have implemented @type in java by using below annotation

    @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@type" ,defaultImpl=Customer.class)


    but I am not able to understand other attributes.Please help me on this , that how I can implement these attributes are these string , or custom annotation for open api's

    Thanks in advance.



    ​​​

    ------------------------------
    Akansha Agarwal
    Comviva
    ------------------------------


  • 2.  RE: Extension of Open API's

    TM Forum Member
    Posted Dec 04, 2020 10:34
    Hi Akansha,

    Please refer to the polymorphism concept, TMF630 part2.

    Regards

    Alexis

    ------------------------------
    Alexis de Peufeilhoux
    Deutsche Telekom AG
    ------------------------------



  • 3.  RE: Extension of Open API's

    Posted Dec 04, 2020 11:33
    Edited by Akansha Agarwal Dec 07, 2020 06:17


  • 4.  RE: Extension of Open API's

    TM Forum Member
    Posted Dec 07, 2020 08:21
    Most up-to-date design guidelines published here.
    Additionally, most of the examples in the Open API user guides include example for these fields. Take a look for example at TMF634, Resource Catalog, accessible from the Open API table here.
    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.
    ------------------------------