Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/alexwebpuro/alx-pokemon/archive/refs/heads/main.zipUpdates itself. It ships its own updater (Update URI header), so new versions appear under Dashboard → Updates.
Pokemon plugin
Considering the test requirements, I believe the best solution is to bring all the logic into the plugin, due to the functionalities it offers.
Documentation
When this plugin is activated, it calls the Pokémon API and retrieves the first five Pokémon.
API endpoints
- #### GET [ your-site.com ]/wp-json/pk/v1/pokemon
Deliver the information in JSON format for the Pokémon created in WordPress.
- #### GET [ your-site.com ]/wp-json/pk/v1/pokedex
Provide the recent Pokédex number of the Pokémon.
Custom URL's
- [ your-site.com ]/random
Features
- Random Pokemon page.
- Pokemon API Rest.
- Auto create pokemon post type ( when plugin is activated ).
- Pokemon template.
Demo
Wordpress con el plugin instalado.
- alexmonroy.com
Authors
- alexwebpuro