[wp-hackers] API layer
christian.foster at gmail.com
Wed Jun 5 02:59:50 UTC 2013
Just had a look at WP-API - looks great. There is definitely some stuff in
there I can use.
Main issues for me developing are:
a) should it accept all parameters to WP_Query/WP_Comments_Query etc or
provide a simplified subset of available parameters (like the rest api on
b) output json - some clients (Ember for example) like particular formats
and there are lots of different conventions. I.e. wrapping the response in
a top level element like "posts", and sideloading comments instead of
embedding in the post themselves.
c) how to output menus - in a hierarchical format or flat with parent/child
keys and let the client deal with it
d) outputting media - should it just provide the URL to the media file or
do more like convert/optimize etc.
e) security - how to authenticate securely, assume it's not possible unless
site is on SSL. Different oauth grant types, scopes etc and how to use from
a JS only client.
Anyway - have added you as a collaborator, would love any ideas/feedback
On Tue, Jun 4, 2013 at 11:51 PM, Ryan McCue <lists at rotorised.com> wrote:
> Christian Foster wrote:
> > Hi all,
> > I've been working on a developer oriented API layer for WordPress - it's
> > separate (but smallish) application that sits alongside your WordPress
> > install to help ease development of mobile, flash, JS clients etc.
> Hey Christian,
> I'm working on something similar as part of GSoC this year, but as a
> plugin (with the eventual goal of core integration). You can check it
> out at https://github.com/rmccue/WP-API
> I'd love to hear about your experiences building your application. I've
> previously implemented my own in a similar method (external application
> hooked into WordPress) and although it's a little easier to implement,
> it's less distributable.
> Ryan McCue
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers