Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
public-topic
API for external service
Avatar
Pitt
Guest
Guests
Sep 26, 2015 - 5:55 am
Quote

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 ;- 

Avatar
Ike
Sawtry, UK
Member
Free Members
Offline
Sep 26, 2015 - 8:26 am
Quote

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.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Sep 26, 2015 - 10:44 am
Quote

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...

Avatar
Pitt
Guest
Guests
Sep 27, 2015 - 2:21 pm
Quote

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 !

Avatar
Pitt
Guest
Guests
Sep 27, 2015 - 2:46 pm
Quote

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 ?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Sep 27, 2015 - 3:56 pm
Quote

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! 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Sep 27, 2015 - 7:58 pm
Quote

who knows, maybe I will even start having a play with it... cool

Avatar
Yehonal
Member
Offline
Jan 24, 2016 - 6:19 am
Quote

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. 

Avatar
Yellow Swordfish
Glinton, England
SP Master
Offline
Jan 24, 2016 - 6:27 am
Quote

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

andy-signature.png
YELLOW
SWORDFISH
Avatar
Yehonal
Member
Offline
Jan 24, 2016 - 6:31 am
Quote

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

Glad to head that 🙂

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626