hivecommerce / magerun2-list-api-endpoints
Plugin for netz98 Magerun2 to list all API endpoints
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 1
Open Issues: 1
Language:Shell
Requires
- php: ~7.4.0|~8.0.0|~8.1.0
- magento/framework: ~102.0.7-p2|~103.0.0|~103.0.1|~103.0.2|~103.0.3|~103.0.4
- magento/module-webapi: ~100.3.6-p2|~100.4.0|~100.4.1|~100.4.2|~100.4.3
Requires (Dev)
- bitexpert/captainhook-infection: ^0.6.0
- bitexpert/phpstan-magento: ^0.20.0
- captainhook/captainhook: ^5.10.8
- captainhook/plugin-composer: ^5.3.3
- infection/infection: 0.22.0|^0.26.6
- n98/magerun2: ^4.5.0|^4.9.1|^5.0.1
- phpstan/extension-installer: ^1.1
- phpstan/phpstan: ^1.5.4
- phpstan/phpstan-strict-rules: ^1.1
- phpunit/phpunit: ^9.5.20
- squizlabs/php_codesniffer: ^3.6.2
Conflicts
This package is auto-updated.
Last update: 2024-12-06 10:31:53 UTC
README
This is a plugin for netz98 Magerun2 to list all API endpoints.
Installation
The preferred way of installing hivecommerce/magerun2-list-api-endpoints
is through Composer.
Simply add hivecommerce/magerun2-list-api-endpoints
as a dev dependency:
composer.phar require --dev hivecommerce/magerun2-list-api-endpoints
Local installation
If you do not want to add the command to one specific project only, you can install the plugin globally by placing the
code in the ~/.n98-magerun2/modules
directory. If the folder does not already exist in your setup, create the folder
by running the following command:
mkdir -p ~/.n98-magerun2/modules
The next thing to do is to clone the repository in a subdirectory of ~/.n98-magerun2/modules
:
git clone git@github.com:hivecommerce/magerun2-list-api-endpoints.git ~/.n98-magerun2/modules/magerun2-list-api-endpoints
Usage
This plugin adds the api:list:endpoints
command to magerun2.
You are able to filter routes by their respective HTTP methods. To only
see GET
routes, run magerun2 like this:
magerun2 api:list:endpoints --method=get
To list all GET
and POST
routes, pass a comma-separated list as method argument:
magerun2 api:list:endpoints --method=get,post
You are able to filter routes by their url. To only see customers
routes,
run magerun2 like this:
magerun2 api:list:endpoints --route=customers
Both filters can be combined, to show only customers
routes with the GET
method, run magerun2 like this:
magerun2 api:list:endpoints --route=customers --method=get
Contribute
Please feel free to fork and extend existing or add new features and send a pull request with your changes! To establish a consistent code quality, please provide unit tests for all your changes and adapt the documentation.
Want To Contribute?
If you feel that you have something to share, then we’d love to have you. Check out the contributing guide to find out how, as well as what we expect from you.
License
This plugin is released under the Apache 2.0 license.