Auto enable Security Schemes in Swagger yaml during SmartDocs Import

Not applicable

Is is possible to automatically enable all Security Schemes found in a Swagger yaml file that is imported into the Drupal developer portal?

We use the smartdocs_services module to import API Models as part of our automated deployment process. I currently need to manually editing the API Model after import and turn on the Security Schemes before the Oauth or APIKey buttons will appear in the SmartDocs console. We would like to eliminate this manual step.

Thanks,

Bob

0 2 289
2 REPLIES 2

Not applicable

I learned that if you add the security scheme at the method level, then the appropriate button will appear. There seems to be bug that the global security scheme is not inherited upon importing the API model.

Is it still a bug, or now it takes the security from the global scheme ? i tried it without success.