Skip to content

Provides a user interface to check WordPress JSON API endpoint and their attributes.

License

Notifications You must be signed in to change notification settings

shazzad/wp-rest-explorer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WP Rest Explorer

Provides a user interface to check WordPress JSON API endpoint and their attributes.

Installation

Add repository to your project composer.json file

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/shazzad/wp-rest-explorer"
    }
  ],
  "require": {
    "shazzad/wp-rest-explorer": "dev-main"
  }
}

Install dependencies

$ composer install

Usage

Enqueue css/js

Shazzad\WP_Rest_Explorer\Rest_Explorer::register_scripts();
Shazzad\WP_Rest_Explorer\Rest_Explorer::enqueue_scripts();

Render Ui

Shazzad\WP_Rest_Explorer\Rest_Explorer::render( 
  rest_url( 'wp/v2/posts' ),
  array(
    'title' => 'Posts API (V2)'
  )
);

About

Provides a user interface to check WordPress JSON API endpoint and their attributes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published