Wordpress Rest Api wp-json / wp / v2 / find?path =

时间:2017-08-02 16:01:56

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

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

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

我的网址

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

通过查找

获取请求
 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 个答案:

答案 0 :(得分:0)

Wordpress API changes page这里没有概述"发现"资源。不知道你可能从哪里得到它,但它最近没有被删除。也许很久以前。你在用什么版本的WP?

相关问题