'how to generate bearer token from swagger3 and spring-boot

I have an external api which we are using for generating token. We want to add this api in our project doc which is swagger. I want to generate token and authorise all apis available in project directly from swagger UI.

We want to generate token directly from swagger3 and spring boot.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source