Open APIs

 View Only
  • 1.  Open API (Swagger 2.0, few questions)

    TM Forum Member
    Posted Jan 26, 2022 12:21

    Good afternoon colleagues, I would like to ask your advice about swagger. I have few questions:

    1. In swagger 2.0 How to make nesting in properties list or is it impossible to do


    2. Is it normal to make swagger file manually ?  or I need to do it just by Java code to compile,
        because I don't know how it is better to add in current code detailed description about every value
        What  is better in this case to do? 



    ------------------------------
    Alexey Aleynikov
    Deutsche Telekom AG
    ------------------------------


  • 2.  RE: Open API (Swagger 2.0, few questions)

    TM Forum Member
    Posted Jan 26, 2022 14:15
    Hi Alexey
    1. A property can be of a scalar type (string, number, boolean), or it can be an object, or an array of scalars or objects.
    2. In TMF Open API, we have tooling that creates swagger files automatically from underlying assets (json schemas, rules files). But if you want to hand-edit swagger files, why not.
    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: Open API (Swagger 2.0, few questions)

    TM Forum Member
    Posted Jan 27, 2022 06:51
    Thanks Jonathan !

    ------------------------------
    Alexey Aleynikov
    Deutsche Telekom AG
    ------------------------------