ylletjs / wp-rest-api-routes
Exposing rewrite rules through the REST API
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 1
Forks: 0
Open Issues: 1
Type:wordpress-plugin
pkg:composer/ylletjs/wp-rest-api-routes
Requires
- php: ^7.0
- composer/installers: ~1.0
Requires (Dev)
- frozzare/wp-test-suite: ~1.0
- wp-coding-standards/wpcs: dev-develop
This package is auto-updated.
Last update: 2025-10-27 19:28:52 UTC
README
Exposing rewrite rules through the REST API.
New endpoint:
/wp-json/wp/v2/routes
Example response:
[
{
"path": "^wp-json\/?$",
"type": "unknown"
},
{
"path": "^wp-json\/(.*)?",
"type": "unknown"
},
{
"path": "^index.php\/wp-json\/?$",
"type": "unknown"
},
{
"path": "^index.php\/wp-json\/(.*)?",
"type": "unknown"
},
{
"path": "blog\/category\/(.+?)\/feed\/(feed|rdf|rss|rss2|atom)\/?$",
"type": "category"
},
{
"path": "blog\/category\/(.+?)\/(feed|rdf|rss|rss2|atom)\/?$",
"type": "category"
}
]
Installation
composer require ylletjs/wp-rest-api-routes
License
MIT © Fredrik Forsmo