2017-08-02 219 views
-1

我试图设置此回购角2通用+ WordPress的REST API: https://github.com/jussikinnula/angular2-universal-wordpressWordPress的REST API WP-JSON/WP/V2 /找到路径=

在get函数有一个搜索/ WP- json/wp/v2/find?path = 是否已从WordPres rest api中删除? 我试图做我的网站上搜索,并得到一个404错误

路径我的网址

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

Get请求与找到

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({}))); 
    } 
+1

似乎并不存在 - https://developer.wordpress.org/rest-api/reference/ –

回答

0

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

+0

好吧,它说WP 4.7的支持,我在4.7。与最新的插件。 –

+0

它可能是某种类型的默认查询搜索,而不是api的一部分 –