Ask a Question

Token in openapi schema

ann1234
Occasional Contributor

Token in openapi schema

How i can add bearer tocken in openapi.yaml?

4 REPLIES 4
chichepo
Champion Level 2

Hi @ann1234 

 

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

chichepo_0-1695106565943.pngchichepo_1-1695106590311.png


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

chichepo_2-1695106832827.png


Let us know

ann1234
Occasional Contributor

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

chichepo
Champion Level 2

@ann1234 

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

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 

cancel
Showing results for 
Search instead for 
Did you mean: