【问题标题】:Wordpress Rest Api wp-json/wp/v2/find?path=Wordpress Rest Api wp-json/wp/v2/find?path=
【发布时间】:2018-01-09 23:16:24
【问题描述】:

我正在尝试设置这个 repo Angular 2 Universal + WordPress REST API: https://github.com/jussikinnula/angular2-universal-wordpress

在get函数中有一个搜索/wp-json/wp/v2/find?path= 是否已从 WordPress rest api 中删除? 我尝试在我的网络上进行搜索并收到 404 错误

我的网址路径

http://ecommerce-ux.london/wp-json/wp/v2/find?path=

使用 find 获取请求

 get(path: string) {
        if (path === "") {
            path = "header";
        }
        return this.apiService.get("/wp-json/wp/v2/find?path=" + path)
            .map(content => new Content(content))
            .do(content => this.setMeta(content))
            .catch(error => Observable.of(new Content({})));
    }

【问题讨论】:

标签: wordpress api wordpress-rest-api get-request


【解决方案1】:

在Wordpress API changes page 中没有概述“查找”资源的内容。不知道你可能从哪里得到它,但它最近没有被删除。也许很久以前。你用的是什么版本的WP?

【讨论】:

  • 嗯,它说支持 WP 4.7,我在 4.7。使用最新的插件。
  • 可能是某种类型的默认查询搜索,而不是 api 的一部分
猜你喜欢
  • 1970-01-01
  • 2017-11-28
  • 2018-01-29
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多