Forum Discussion

ann1234's avatar
ann1234
Occasional Contributor
11 months ago

Token in openapi schema

How i can add bearer tocken in openapi.yaml?

4 Replies

  • chichepo's avatar
    chichepo
    Champion Level 2

    Hi ann1234 

     

    You can find the relevant documentation here.
    The first step is the security options declarations:


    Then, you can use it at method level or general level:


    Let us know

  • ann1234's avatar
    ann1234
    Occasional Contributor

    No i want add it in generated openapi.yaml's process

    • chichepo's avatar
      chichepo
      Champion Level 2

      ann1234 

      I guess It depends on the generator options.
      which kind of generator are you using?

  • ann1234's avatar
    ann1234
    Occasional Contributor

    i generate yaml with smallrye dependency, but i also generate postman json with portman and newman run it, and i want somewhere add token