How to get REST response in JSON?
-
I want to use the REST api for my v4.8 site and expect responses in json as is standard for REST. Yet this request gives me a response in html:
https://ellehauge.net/wp/v2/posts/
Also tried some variations like this:
https://ellehauge.net/wp/v2/posts/?_format=jsonHow do I get the response in json?
I can’t seem to find that in the documentation.Cheers, Jonas
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to get REST response in JSON?’ is closed to new replies.