I am using the following plugin Json Rest API.

To test the plugin the documentation states that I should just use:

$ curl -i http://testpress-maxximus.rhcloud.com/wp-json/
HTTP/1.1 404 Not Found
Date: Sat, 24 May 2014 07:01:21 GMT
Server: Apache/2.2.15 (Red Hat)
Content-Length: 303
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /wp-json/ was not found on this server.</p>
<hr>
<address>Apache/2.2.15 (Red Hat) Server at testpress-maxximus.rhcloud.com Port 8
0</address>
</body></html>

As you can see nothing is found by the URL. Any recommendations if there is a problem with the API or wordpress?

I appreciate your reply

推荐答案

当前版本的REST api用于未启用pretty permalinks的站点,url

    yoursite.com/?rest_route=/ 

will work .

Json相关问答推荐

从Razor Pages的AJAX Json呈现DataTables问题.Net GET

褐煤面积图中的分选问题

属性错误:';ActivitiesClient';对象没有属性';base_url';

jq 对特定键进行过滤并将值整理到单个 csv 单元格中

Moshi:序列化 List 时出现问题

使用 jq 如何更改键的值?

Golang jsonrpc2 服务器在哪里监听?

在 postgres 14 中将记录转换为所需的 json 格式

正向闪烁后的微调值

使用 jq 将键值行转换为 json

如何用 Xidel 正确读取这个 JSON 文件?

如何使用 gson 将数据保存在 json 文件中?

单元测试球衣 Restful Services

一起使用 Argparse 和 Json

如何一次加载无限滚动中的所有条目以解析python中的HTML

如何在java中比较来自JsonObject的空值

jQuery.getJSON 和 jQuery.parseJSON 返回 [object Object]?

区分字符串和列表的 Pythonic 方式是什么?

如何在 Django JSONField 数据上聚合(最小/最大等)?

无法解析 JSON 文件中的 TAB