[wp-hackers] API layer

Christian Foster christian.foster at gmail.com
Wed Jun 5 02:59:50 UTC 2013


Hey Ryan,

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
wordpress.com)
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
you have.

Cheers.


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
> a
> > 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.
>
> Thanks,
>
> --
> Ryan McCue
> <http://ryanmccue.info/>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list