Working with Rest API in WordPress

Start with installing a plugin WordPress REST APIĀ on your wordpress site Second, install Chrome Plugin called “POSTMAN” on your PC To access the JSon Open Postman with GET type : http://your-site-name/wp-json/wp/v2/ To view all posts GET http://your-site-name/wp-json/wp/v2/posts/ To view specific posts/pages, use its id GET http://your-site-name/wp-json/wp/v2/posts/<post id> GET http://your-site-name/wp-json/wp/v2/pages/<page id> Example : GET http://your-site-name/wp-json/wp/v2/posts/30 GET […]