2014-05-24 38 views
10

Aşağıdaki eklentiyi kullanıyorum Json Rest API.Wordpress JsonAPI -/wp-json/bu sunucuda bulunamadı

$ 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> 

hiçbir şey URL tarafından bulunursa görebileceğiniz gibi:

Sadece kullanmalıdır eklentisi documentation durumlarını test etmek için. API veya wordpress ile ilgili bir sorun varsa herhangi bir öneri?

Ben bunları site için etkin olduğundan emin olun, cevabınızı

+2

[Güzel permalinks] (http://codex.wordpress.org/Using_Permalinks#Using_.22Pretty.22_permalinks) etkin mi? Cevabınız için – brasofilo

+0

@brasofilo Thx! Evet ( – mrquad

cevap

8

güzel Kalıcı Bağlantılar olan siteler için DİNLENME API geçerli sürümü değil etkin,

yoursite.com/?rest_route=/ 

çalışacak url.

+0

Bir çekicilik gibi çalıştı, teşekkürler! –

+0

yoursite.com/index.php/wp-json da çalışır – Foad