Tankstellen Köln CRUD
Entwicklung eines WordPress-Plugins zur Darstellung von Tankstellen-Daten mit Bootstrap Cards. Erweiterung zur CRUD-Schnittstelle
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/uztzu87/tankstellen-koeln-crud/archive/refs/heads/main.zipTankstellen Köln Plugin
This plugin displays Cologne gas station data as Bootstrap Cards in a Gutenberg block.
It includes search and sort functionality.
A CRUD API extension is provided for managing gas station data.
File Structure
/tankstellen-koeln/ ├── tankstellen-koeln.php ├── includes/ ├── enqueue-scripts.php │ ├── block-registration.php │ └── crud-api.php ├── blocks/ └── block.js ├── assets/ ├── css/ └── tk-styles.css │ └── js/ └── tk-script.js └── README.md
Installation
- Upload the plugin folder to
/wp-content/plugins/. - Activate the plugin in the WordPress admin.
- Use shortcode [tkc_cards]
CRUD API Endpoints
- GET:
/wp-json/tk/v1/tankstellen - POST:
/wp-json/tk/v1/tankstellen - PUT:
/wp-json/tk/v1/tankstellen/{id} - DELETE:
/wp-json/tk/v1/tankstellen/{id}
Note: Permissions are required for POST, PUT, and DELETE operations.