SmartDocs App Select
This project adds a select list for API Keys to SmartDocs nodes. Developers no longer have to copy-paste the api keys; they can simply choose the app from the select list. This works for models with the custom attribute security scheme.
Installation
- Create the following folder in your Drupal developer portal for the custom moule: /sites/all/modules/custom/smartdocs_app_select
- Move the following files to that folder:
- smartdocs_app_select.info
- smartdocs_app_select.module
- js/smartdocs_app_select.js
- Upload the handlebars template smartdocs_app_select.hbr to the model Method Template under the settings of the Smartdocs model. Or add it as a the global template under Configuration > Smartdocs > Advanced Settings.
- Enable the smartdocs module in Modules
Configuration
Make sure you select the API Product/SmartDocs correlation under Configuration > Smartdocs. Only apps are shown with a API Product that has a correlation with the SmartDocs model that the documenation page belongs to.