Appery.io and WordPress

If you’re using WordPress 4.6, you can use the REST API without the need for the plugin by simply using the following:

add_action('rest_api_init', function() {

    $namespace="myapi";

    register_rest_route($namespace, '/myroute', array(
        'methods' => 'GET',
        'callback' => 'handle_my_route'
    ), true);

    function handle_my_route() {
        return 'Hello World!';
    }
}

Then, going to: yourwebsite/wp-json/myapi/myroute would return the callback value, which in the case above is ‘Hello World’.