WP Manifestindependent plugin directory
manifest / integrations / wp-rest-api-routes

WP REST API Routes

Exposing rewrite rules through the REST API

★ 5stars
6composer installs
v1.0.0latest · 8 years ago

Install

Download source zip No release zip yet

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/ylletjs/wp-rest-api-routes/archive/refs/heads/master.zip

On Packagist as ylletjs/wp-rest-api-routes:

composer require ylletjs/wp-rest-api-routes
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Routes endpoint

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

Releases

1 release.

Tag
Published
v1.0.0 latest
Mar 2, 2018 8 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.