Support Forum

API for external service

UN
Unknown
Member

Hi !

I’m really interested in simple:press plugin, but can’t find out if it will meet this specific requirement before subscribing to a paying plan :
Can the API be easily exposed by something like a REST service ?
I like the web interface but we need to natively integrate this forum in an iOS application, so we would need webservices to :
– List forums
– List topics in a specific forum
– Read a topic
– Post a new topic
– Answer a topic

Thanks in advance, great product you have there ;- 

10 Answers

New Answer

IK Ike
Ike
Member

Hey Pitt,

Not ignoring this post. As far as I can make out this is all doable, but I’m going to have to leave this one for Mr Papa to answer as it’s a bit out of my depth, I’m sure he will be along soon.

MP Mr Papa
Mr Papa
Member

I  believe what you want is not directly available…

We do have a full api for doing things with simple press…  but, it is not a restful api…  so still operates in the realm of a WP plugin…

WP itself does not have a restful api though that is coming soon…  there is a feature plugin for demo’ing a rest api that is planned to be integrated into core (perhaps in 4.4)..  its possible that once its in core, we will add support to it should it be robust enough for plugins to effectively tie into and extend…

UN
Unknown
Member

Hi !
Thanks both of you for your answers, I’ll investigate if I find any suitable solution to build a REST API and a gate to your internal API.
If it’s somehow feasible I’ll chose simple press (and let you know how I plan to do this).

We only need web for now but the native implementation is a future requirement for us, that’s why I had to ask !

Thanks again !

UN
Unknown
Member

I investigated a bit and found the plugin you mentioned and even a way to add endpoints : http://v2.wp-api.org/extending/adding/

Do you think there’s anything I need in your API for me to add the endpoints I need ?

MP Mr Papa
Mr Papa
Member

yes that its it…  and a proposal has been made for it to be incorporated into WordPress core in 4.4 (current in development)…

When released, we will investigate a simple press plugin to implement…  but at this point we have not looked at it in depth or really thought about what kind of custom end point we would add…

So I guess I cannot give you a definitive answer…  but I believe our current API would largely support adding a REST custom endpoint for WP….  it really depends on what you want to do… and how low level you end up going…  if you largely just want topics and posts, I would suspect all is in place…

sounds like fun! 

MP Mr Papa
Mr Papa
Member

who knows, maybe I will even start having a play with it… 😎

YE Yehonal
Yehonal
Member

I’m looking for this feature too, restful api can be useful to transform simple-press forum in a real forum service where “front-end” applications are separated by server app.

So you can develop single-page-app that can be also developed by third-party! 

Different forums already do it, such as: bbpress ( thanks to wp 4.4 ) , vanilla forum etc. 

YS Yellow Swordfish
Yellow Swordfish
Member

We are working on this at the moment but I do not have an ETA as yet…

YE Yehonal
Yehonal
Member

Yellow Swordfish said
We are working on this at the moment but I do not have an ETA as yet…

Glad to head that 🙂

MP Mr Papa
Mr Papa
Member

biggest delay is that wp is still finalizing their api for the REST service…  should be done in 4.5 due out in April… So we will be able to finalize ours after that… development is occurring in parallel but we will end up lagging just a bit until theirs is done..