1
wishcraft
XRest 1.52 - Rest API with JSON, XML & Serial Response

Resized Image
X-REST API 1.52
Rest API with JSON, XML & Serial Response
Community Release by Fibredyne Pty Ltd


X-REST 1.50 is a REST API for XOOPS 2.x series. It will work with earlier version of xoops as well upto XOOPS 2.5. It provides a full REST API with JSON, XML and Serialisation Responses. It uses the standard plugin set for the other APIs as well as this one to provide a streamlined solution to APIs on your site, the plugins are compatible with all other API by chronolabs. You may be familar with a REST api such as the ones at Google, Twitter, Facebook etc, this is just the same but allowing for API Action on your own website.

There is two reserved variables on the REST API which are the following: xrestplugin & outputmode.

To call a REST API Function you must know the filename of the plugin, say it is called plugin.php then the following call will call the function on the API. ./xrest/plugin/?var1=example1&var2=example2 or for an XML response you would call ./xrest/plugin/xml/?var1=example1&var2=example2 and of course for PHP Serialisation you could call ./xrest/plugin/serial/?var1=example1&var2=example2 - you can also POST to the api where you can call the following folder for the plugin functionhttp://yoursite.com/modules/xrest/plugin/ where the variables defined in the plugins XSD var1 and var2 are posted using cURL or other systems headers. In this example the variable xrestplugin would equal plugin. You can change the output mode where JSON is the default, by specifying in the variables outputmode=xml for xml output, outputmode=serial for PHP Serilisation output and the standard where you don't need to specify is JSON for outputmode=json for JSON output.

New Features Include:
  • XOOPS 2.5 GUI with About & Dashboard
  • Cache Cleanup Preloader
  • Result Cache
  • XOOPS Blue Room Classes


Some Features Include:
  • Database Access permissioning (Needs to be implemented in plugin)
  • XOOPS User Permissions
  • XOOPS Group Permissions
  • Universal Plugin Set


System Requirements:
  • XOOPS 2.5.x


Download: xoops2.5_xrest_1.52.zip - 110Kb
Mirror: xoops2.5_xrest_1.52.zip - 110Kb
Demo:http://xoops.demo.chronolabs.coop
Resized Image
www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/RegaltyFamily
github.com/Chronolabs-Cooperative
facebook.com/DrAntonyRoberts

2
Mamba
Re: XRest 1.52 - Rest API with JSON, XML & Serial Response
  • 2012/1/8 22:39

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Simon,

when I click on the "Configure Fields":

modules/xrest/admin/index.php?op=fields

I am getting:

Quote:
Fatal error: Call to a member function getVar() on a non-object in \modules\xrest\include\forms.xrest.php on line 31
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

3
wishcraft
Re: XRest 1.52 - Rest API with JSON, XML & Serial Response

Hi Michael,

More a usability issue, you need to add your tables first before going to add fields in to the database permissioning system, however I have added some checking into this now for the routines, ZIPS and SVN has been patched, please confirm if any more errors exists, otherwise publish the news.

Ta

Simon
Resized Image
www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/RegaltyFamily
github.com/Chronolabs-Cooperative
facebook.com/DrAntonyRoberts

Login

Who's Online

165 user(s) are online (74 user(s) are browsing Support Forums)


Members: 0


Guests: 165


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits