Skip to content

Wordpress API

Resources

Auth Plugins

Using JWT-Auth

  • Added to composer.json
    • Under require: "wpackagist-plugin/jwt-authentication-for-wp-rest-api": "~1"
  • Added JWT constant to wp-config.php - define('JWT_AUTH_SECRET_KEY','');
  • Access - local server - http://paseo.demo/wp-json/jwt-auth/v1/token Pass in username and password via form post.

Notes

  • pass ?_embed as part of the url to get some content embedded. http://paseo.demo/wp-json/wp/v2/posts?_embed;