Dynamic API Integration
Plugin Information Plugin Name: Dynamic API Integration Description: A plugin for dynamic API integration in the Gutenberg block editor. Version: 1.0.0 Author: Karishma Shukla License: GPL-2.0-or-later License URI: https://www.gnu.org/licenses/gpl-2.0.html Features Dynamically fetch data from extern
Plugin Information
Plugin Name: Dynamic API Integration Description: A plugin for dynamic API integration in the Gutenberg block editor. Version: 1.0.0 Author: Karishma Shukla License: GPL-2.0-or-later License URI: https://www.gnu.org/licenses/gpl-2.0.html
Features
- Dynamically fetch data from external APIs.
- Display API data within a custom Gutenberg block.
- Configure API URL, request type, and parameters from the WordPress admin settings.
- Supports both GET and POST request methods.
- REST API endpoint for secure communication.
Usage
Configure API Settings
- 01Navigate to Settings > API Integration in the WordPress admin panel.
- 02Configure the following options: API URL: Enter the external API endpoint.
- 03Request Type: Select GET or POST .
- 04Parameters: Provide JSON-formatted parameters (e.g., { "key": "value" } ).
- 05Save the settings.
Add the Gutenberg Block
- 06Open the WordPress block editor (Gutenberg).
- 07Search for the Dynamic API Integration block.
- 08Add the block to your post or page.
- 09Preview or publish the post to view the fetched API data.
REST API Endpoint
This plugin exposes a custom REST API endpoint:
- Endpoint: /wp-json/dai/v1/fetch-data
- Request Type: Configurable via the admin settings.
- Parameters: Configurable via the admin settings.
License
This plugin is licensed under the GPLv2 or later .