WordPress.org

Support

Support » Plugins and Hacks » WP REST API (WP API) » [Resolved] API returns "null" for /users

[Resolved] API returns "null" for /users

  • Hi,

    when issuing a simple GET to /users the API just returns the string null. Same thing happens when I try to create a new category by POSTing JSON to /posts/types/post/taxonomies/category/terms.

    What do I do wrong? Maybe wrong authentication? The API should probably respond with a meaningful error.

    Thanks for your work!

    Florian

    http://wordpress.org/plugins/json-rest-api/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Still occurs with the JSONT-REST-API 0.8 and WordPress 3.8. I should also mention that I configured the WordPress installation to host multiple sites.

    Check this:
    https://github.com/WP-API/WP-API/blob/master/lib/class-wp-json-server.php#L260

    array( '__return_null', self::READABLE )
    Means that they’ve not started on it yet. As we have not a 1.0 not every part of the API has been worked on yet.

    Thanks for the response.
    I did not expect the API to return the string “null” for unimplemented parts, but maybe something like “not implemented”. Thus, I did not look up the source code.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] API returns "null" for /users’ is closed to new replies.
Skip to toolbar