Forum Discussion
HKosova
Alumni
6 years agoHi Herry,
The next version of the spec, OpenAPI 3.1 (which is in the RC stage now), will support defining roles for operations secured with API keys:
paths:
/secret:
get:
security:
- JwtBearerAuth: [admin] # <-----
In OpenAPI 2.0 and 3.0, you can mention these roles in the operation descriptions.