Hello @sgt621,
The issue you’re experiencing with the error message rest_no_route
when trying to call the REST API using the {{baseUrl}}/?rest_route=/wp/v2/block-renderer/postman-generated-block
is likely happening because the route postman-generated-block
it trying to to find the postman-generated-block
block
in WordPress default blocks but such block
does not exist in the WordPress.
You can try accessing blocks like archives, search which should work.
{{baseUrl}}/?rest_route=/wp/v2/block-renderer/core/archives&context=edit
Also add authentication the request may require authentication.
Here’s how to add it in Postman:
- In Postman, go to the Authorization tab.
- Select Basic Auth.
- You will need a username and an application password.
To generate an application password in WordPress, follow these steps:
- Navigate to Users > Profile in the WordPress admin dashboard.
- Scroll down to Application Passwords.
- Give it a name and click Add New Application Password.
- Copy the generated password and use it in Postman.
You can follow this tutorial: https://dev.to/david_woolf/using-postman-with-the-wordpress-rest-api-41bk#basic-authentication-with-application-passwords
Hope this helps!
-
This reply was modified 1 month, 1 week ago by Aditya Dhade.