=== Random API Generator ===
Contributors: yogesha
Tags: api, random, utilities, block, shortcode
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

"Draw me an API!" A playful block and shortcode that fetch a random public API and shows a copyable endpoint with sample JS/PHP snippets.

== Description ==
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)

== Installation ==
1. Upload the plugin folder to `/wp-content/plugins/` or install via the Plugins screen.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Optional: Go to Settings → Random API Generator to select allowed categories.
4. Add the block "Draw me an API" or the `[randapigen_api_generator]` shortcode.

== Screenshots ==
1. Settings page with category selection
2. Frontend widget showing a drawn API and snippets

== Frequently Asked Questions ==
= 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.

== Changelog ==
= 1.0.0 =
* Initial release.


