Allowing users to select their APIKeys as a dropdown on SmartDocs Method pages

There have been requests to make it easier for users to use their own API keys when trying out API calls on the SmartDocs documentation pages.

I have created a sample module to demonstrate the same. Please use this as an example for your customization.

Please download it here smartdocs_autoload_apikey GitHub project

Module needs to be downloaded to sites/all/modules folder and then enabled from the Modules section of the developer portal.

To use this widget you will need to add the API Key security scheme in your swagger file and attach the scheme to all the methods that use API Keys

Comments
jaywanttopno
New Member

After enabling smartdocs_autoload_apikey i am getting error on smartdocs node edit page.

as per your guidance i have added "API Key" Security Scheme.

Version history
Last update:
‎01-10-2017 10:59 AM
Updated by: