外掛說明
Add a fun developer utility to your site. Each click draws a curated random public API inspired by weekly selections on https://www.freepublicapis.com/ and shows:
- API name, category, and summary
- A copyable endpoint URL
- Sample JavaScript and WordPress PHP snippets
Features:
– Gutenberg block and [randapigen_api_generator] shortcode
– Admin setting to restrict categories
– Local favorites (browser localStorage)
適用於區塊編輯器
這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。
- Draw me an API Button that draws a random public API and shows snippets.
安裝方式
- Upload the plugin folder to
/wp-content/plugins/or install via the Plugins screen. - Activate the plugin through the ‘Plugins’ screen in WordPress.
- Optional: Go to Settings Random API Generator to select allowed categories.
- Add the block “Draw me an API” or the
[randapigen_api_generator]shortcode.
常見問題集
-
Where does the data come from?
-
From a curated built-in list inspired by https://www.freepublicapis.com/. You can filter categories in Settings.
-
Does it store personal data?
-
No. Favorites are stored locally in the visitor’s browser.
使用者評論
這個外掛目前沒有任何使用者評論。
參與者及開發者
變更記錄
1.0.0
- Initial release.


