Version Description
Bugfix release, possibly stemming from a bug in WordPress 3.0
Download this release
Release Info
Developer | dphiffer |
Plugin | JSON API |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0 to 1.0.1
- controllers/core.php +1 -1
- json-api.php +1 -1
- readme.txt +18 -6
controllers/core.php
CHANGED
@@ -150,7 +150,7 @@ class JSON_API_Core_Controller {
|
|
150 |
$json_api->error("Not found.");
|
151 |
}
|
152 |
$posts = $json_api->introspector->get_posts(array(
|
153 |
-
'
|
154 |
));
|
155 |
return $this->posts_object_result($posts, $tag);
|
156 |
}
|
150 |
$json_api->error("Not found.");
|
151 |
}
|
152 |
$posts = $json_api->introspector->get_posts(array(
|
153 |
+
'tag' => $tag->slug
|
154 |
));
|
155 |
return $this->posts_object_result($posts, $tag);
|
156 |
}
|
json-api.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: JSON API
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/json-api/
|
5 |
Description: A RESTful API for WordPress
|
6 |
-
Version: 1.0
|
7 |
Author: Dan Phiffer
|
8 |
Author URI: http://phiffer.org/
|
9 |
*/
|
3 |
Plugin Name: JSON API
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/json-api/
|
5 |
Description: A RESTful API for WordPress
|
6 |
+
Version: 1.0.1
|
7 |
Author: Dan Phiffer
|
8 |
Author URI: http://phiffer.org/
|
9 |
*/
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: json, api, ajax, cms, admin, integration, moma
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 3.0
|
7 |
-
Stable tag: 1.0
|
8 |
|
9 |
A RESTful API for WordPress
|
10 |
|
@@ -63,7 +63,7 @@ Requests use a simple REST-style HTTP GET or POST. To invoke the API, include a
|
|
63 |
JSON API operates in two modes:
|
64 |
|
65 |
1. *Implicit mode* is triggered by setting the `json` query var to a non-empty value on any WordPress page. The content that would normally appear on that page is returned in JSON format.
|
66 |
-
2. *Explicit mode* is triggered by setting `json` to a known method string. See
|
67 |
|
68 |
= Implicit mode examples: =
|
69 |
|
@@ -84,7 +84,7 @@ JSON API operates in two modes:
|
|
84 |
* `http://www.example.org/api/get_tag_posts/?tag_slug=banana`
|
85 |
|
86 |
__Further reading__
|
87 |
-
See Section 3: Request arguments for more information about request arguments to modify the response.
|
88 |
|
89 |
== 1.2. Controllers ==
|
90 |
|
@@ -111,7 +111,7 @@ JSON API retains support for its pre-1.0 methods. For example, if you invoke the
|
|
111 |
The current release includes three controllers: Core, Posts, and Respond. Developers are encouraged to suggest or submit additional controllers.
|
112 |
|
113 |
__Further reading__
|
114 |
-
See Section 2: Request methods for a complete reference of available controllers and methods. For documentation on extending JSON API with new controllers see Section 5.2: Developing JSON API
|
115 |
|
116 |
== 1.3. Responses ==
|
117 |
|
@@ -166,7 +166,11 @@ Here is an example response from `http://localhost/wordpress/?json=1` called on
|
|
166 |
|
167 |
== 2. Request methods ==
|
168 |
|
169 |
-
|
|
|
|
|
|
|
|
|
170 |
|
171 |
== 2.1. Core controller methods ==
|
172 |
|
@@ -740,7 +744,7 @@ This filter controls the array of controllers available to JSON API. The callbac
|
|
740 |
}
|
741 |
|
742 |
|
743 |
-
== Filter: json_api_[controller]_controller_path
|
744 |
|
745 |
Specifies the PHP source file for a given controller, overriding the default location `wp-content/plugins/json_api/controllers`.
|
746 |
|
@@ -844,6 +848,11 @@ Now append the `name` query var to the method call: `http://www.example.org/api/
|
|
844 |
|
845 |
== Changelog ==
|
846 |
|
|
|
|
|
|
|
|
|
|
|
847 |
= 1.0 (2010-06-29): =
|
848 |
* JSON API officially drops support for PHP 4 (it was already broken)
|
849 |
* Added JSON API Settings page to WP admin
|
@@ -909,6 +918,9 @@ Now append the `name` query var to the method call: `http://www.example.org/api/
|
|
909 |
|
910 |
== Upgrade Notice ==
|
911 |
|
|
|
|
|
|
|
912 |
= 1.0 =
|
913 |
Major release, see changelog for details.
|
914 |
|
4 |
Tags: json, api, ajax, cms, admin, integration, moma
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 3.0
|
7 |
+
Stable tag: 1.0.1
|
8 |
|
9 |
A RESTful API for WordPress
|
10 |
|
63 |
JSON API operates in two modes:
|
64 |
|
65 |
1. *Implicit mode* is triggered by setting the `json` query var to a non-empty value on any WordPress page. The content that would normally appear on that page is returned in JSON format.
|
66 |
+
2. *Explicit mode* is triggered by setting `json` to a known method string. See *Section 2: Request methods* for a complete method listing.
|
67 |
|
68 |
= Implicit mode examples: =
|
69 |
|
84 |
* `http://www.example.org/api/get_tag_posts/?tag_slug=banana`
|
85 |
|
86 |
__Further reading__
|
87 |
+
See *Section 3: Request arguments* for more information about request arguments to modify the response.
|
88 |
|
89 |
== 1.2. Controllers ==
|
90 |
|
111 |
The current release includes three controllers: Core, Posts, and Respond. Developers are encouraged to suggest or submit additional controllers.
|
112 |
|
113 |
__Further reading__
|
114 |
+
See *Section 2: Request methods* for a complete reference of available controllers and methods. For documentation on extending JSON API with new controllers see *Section 5.2: Developing JSON API controllers*.
|
115 |
|
116 |
== 1.3. Responses ==
|
117 |
|
166 |
|
167 |
== 2. Request methods ==
|
168 |
|
169 |
+
Request methods are available from the following controllers:
|
170 |
+
|
171 |
+
* Core controller - basic introspection methods
|
172 |
+
* Posts controller - data manipulation methods for posts
|
173 |
+
* Respond controller - comment/trackback submission methods
|
174 |
|
175 |
== 2.1. Core controller methods ==
|
176 |
|
744 |
}
|
745 |
|
746 |
|
747 |
+
== Filter: json_api_[controller]_controller_path ==
|
748 |
|
749 |
Specifies the PHP source file for a given controller, overriding the default location `wp-content/plugins/json_api/controllers`.
|
750 |
|
848 |
|
849 |
== Changelog ==
|
850 |
|
851 |
+
= 1.0.1 (2010-07-01): =
|
852 |
+
* Fixed some typos in readme.txt
|
853 |
+
* Expanded developer documentation in readme.txt
|
854 |
+
* Switched `get_tag_posts` to query on tag instead of tag_id (maybe a WordPress issue?)
|
855 |
+
|
856 |
= 1.0 (2010-06-29): =
|
857 |
* JSON API officially drops support for PHP 4 (it was already broken)
|
858 |
* Added JSON API Settings page to WP admin
|
918 |
|
919 |
== Upgrade Notice ==
|
920 |
|
921 |
+
= 1.0.1 =
|
922 |
+
Bugfix release, possibly stemming from a bug in WordPress 3.0
|
923 |
+
|
924 |
= 1.0 =
|
925 |
Major release, see changelog for details.
|
926 |
|