Hi Daniel,
I’ve just figured out that I was using the wrong way to make POST request (silly me).
It’s working now.
Thanks again for you help 🙂
Hi Daniel,
Thank you for your reply.
As you can see in my above comment, I created a route with POST method.
I then made a request with this following url (http://nmng.trginternational.com/wp-json/api/v1/createUser). It actually worked before, but now it doesn’t. I got this error.
{
“code”: “rest_no_route”,
“message”: “No route was found matching the URL and request method”,
“data”: {
“status”: 404
}
}
I tried to change
‘methods’ => ‘POST’,
to
‘methods’ => ‘GET’,
then it worked (no error).
Do you have any idea?
Thank you so much. I appreciate this.