A Hello World example for the WordPress REST API
PHP Shell JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
tests
.gitignore
.travis.yml
Gruntfile.js
README.md
composer.json
multisite.xml
package.json
phpcs.ruleset.xml
phpunit.xml.dist
wp-rest-api-hello-world.php

README.md

WP REST API Hello World

Build Status

A Hello World example for the WordPress REST API. Install this plugin and go the the /wp-json/wprahw/hello-world endpoint on your site and you will see an Hello World JSON Response.

Unit Testing

You can perform PHPUnit tests on this plugin by simply going to the plugin directory and typing in these commands:

  1. phpunit
  2. phpunit -c multisite.xml

PHP Validation

You can run a WordPress PHP code standards validator script by performing these commands:

  1. npm install
  2. composer install
  3. grunt phpcs