[wp-hackers] GSoC Proposal: JSON REST API

Ryan McCue lists at rotorised.com
Fri Apr 12 12:24:45 UTC 2013


Mike Schinkel wrote:
> Seeing this I have another concern and that is of implementing the getPost() method as static instead of as the instance method given the difficulty of correctly unit testing static methods[1].

Sure, but the testing in this case it's probably more likely that we'll
test over HTTP anyway.

> I'm not very concerned about pragmatic choices being taken with full understanding of the issues but instead for abritrary choices made because they "seemed like the right way to do it at the time."

There's certainly no chance of that happening.

> Can you give an example (where a browser would support "application/json" and thus using "application/vnd.wordpress+json" would be a problem?)  I can't think of a specific one at the moment.



More information about the wp-hackers mailing list