Maybe I am not following best practice. As it appears the API serves as a literal JSON interpreter for wp_query. Although I would assume most people would be using this API in a single page app using backbone or angular or anything similar.
As it stands I find it a little impractical to have to query for a collection of posts and then have to query for each of those items to get their featured image urls. While, for example, it is possible to create a separate view and model in backbone to display an image. For the purpose of displaying a list of posts and their featured images, I think it's impractical to have to make multiple queries to the API.
As well, I would assume most people at this point are using custom fields of some type. Most notably they are likely using the Advanced Custom Fields Plugin. Is there a plan to include this in the response JSON? As it stands the current state of the API is fairly limiting and wouldn't account for 99.9% of my own personal use cases.
I am sure you have seen the other JSON api plugin https://wordpress.org/plugins/json-api/other_notes/#4.1.-Post-response-object
As you can see it's response object accounts for thumbnails, includes URLs in the attachments array and thumbnail fields, and has a custom_fields object.ap For now I will have to use that plugin as these features are critical for me. But I wish their url structure matched more closely a RESTFUL API. Are these features planned for a future release? I'd be happy to contribute as well. Thanks.
Maybe I am not following best practice. As it appears the API serves as a literal JSON interpreter for wp_query. Although I would assume most people would be using this API in a single page app using backbone or angular or anything similar.
As it stands I find it a little impractical to have to query for a collection of posts and then have to query for each of those items to get their featured image urls. While, for example, it is possible to create a separate view and model in backbone to display an image. For the purpose of displaying a list of posts and their featured images, I think it's impractical to have to make multiple queries to the API.
As well, I would assume most people at this point are using custom fields of some type. Most notably they are likely using the Advanced Custom Fields Plugin. Is there a plan to include this in the response JSON? As it stands the current state of the API is fairly limiting and wouldn't account for 99.9% of my own personal use cases.
I am sure you have seen the other JSON api plugin https://wordpress.org/plugins/json-api/other_notes/#4.1.-Post-response-object
As you can see it's response object accounts for thumbnails, includes URLs in the attachments array and thumbnail fields, and has a custom_fields object.ap For now I will have to use that plugin as these features are critical for me. But I wish their url structure matched more closely a RESTFUL API. Are these features planned for a future release? I'd be happy to contribute as well. Thanks.