PHP 论坛软件的 RESTful 接口 [英] RESTful interface to PHP forum software

查看:16
本文介绍了PHP 论坛软件的 RESTful 接口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望将轻量级论坛功能集成到现有的 GWT 网站中.前端使用 GWT/SmartGWT 编写,后端使用 PHP 编写.通信是通过使用 JSON 的 RESTful API 进行的.

I'm looking to integrate a light-weight forum feature into an existing GWT website. The front-end is written in GWT/SmartGWT and the backend is written in PHP. The communication is through a RESTful API using JSON.

我查看了一些流行软件(SMF、phpBB 等)的论坛,但找不到任何对 RESTful Web API 的引用,以便更轻松地集成到现有的非 PHP 站点中.我最接近的是 vBulletin 的移动 API - https://www.vbulletin.com/forum/content.php/334-mobile-api.不幸的是,vBulletin 不是免费的.

I have looked into the forums of some popular software (SMF, phpBB, etc.) but was unable to find any references to a RESTful web API to make integration into an existing non-PHP site easier. The closest I came is to vBulletin's Mobile API - https://www.vbulletin.com/forum/content.php/334-mobile-api. Unfortunately, vBulletin isn't free.

我最近在一些论坛上看到的一些帖子基本上说用户应该围绕内部 API 编写自己的 Web 服务包装器.然而,这似乎是一个糟糕的解决方案,可能会导致各种额外的错误.

Some recent threads I have seen on some of the forums basically say that the user should write their own web services wrapper around the internal API. However, that seem like a bad solution that can lead to all kinds of additional bugs.

那么,我的问题是 - 有谁知道提供 RESTful Web 服务接口的现有免费论坛软件(PHP、Perl、Ruby OK,但不是 Java)吗?

So, my question is this - does anyone know of an existing, free forum software (PHP, Perl, Ruby OK, but NOT Java) that provides a RESTful web services interface?

一个附带的问题是:有没有人使用过 Restler(http://luracast.com/products/restler/) 将论坛软件的已发布 API 转换为 RESTful 接口?我敢肯定,这种方法会充满潜在的问题,但总有希望.

An ancillary question to this is: has anyone used Restler (http://luracast.com/products/restler/) to turn a forum software's published API into a RESTful interface? I'm sure this method would be fraught with potential problems, but one can always hope.

PS:我在 stackoverflow 上看到了以下较旧的问题,但它们似乎没有那么有用,而且现在有点老了:

PS: I saw the following older questions on stackoverflow, but they don't seem to be that helpful and are now kind of old:

  • Open-Source Forum with API
  • PHP forum software that integrates easily with existing website? -- the OP's website is built in PHP, which makes integration a lot easier
  • forum software with a simple RESTful API support -- Elgg, while a great social networking framework, doesn't include a forum plugin!
  • A forum solution with an Q&A option and API -- same issue as OP, Drupal is really heavy-weight and all I want is the forum functionality.

推荐答案

看起来像 Vanilla 论坛 符合您的要求,他们支持 基于 JSON/XML 的 API

这篇关于PHP 论坛软件的 RESTful 接口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆