404 when passing args to the API
-
Hi,
I defined a custom route with register_routes – works fine. Now I can access the REST API with:
mydomain.com/wphhv/test
The API returns JSON too. So far no problems.
But when I add a parameter to my URL – like:
mydomain.com/wphhv/test?val1=1234&val2=abcd
The API returns an 404 error all the time (checked with http://jsonformatter.curiousconcept.com – just entering the URL into a browser shows no error, but the correct data. When I access the API from an iOS client, I run into the 404 error too).
The wordpress permalink structure is set to “Post name”.
Any idea what’s going wrong?
Best regards,
Detlef
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘404 when passing args to the API’ is closed to new replies.