Loading...

Remote Procedure Call (RPC) interface revamped - JSON-RPC added

The CodeResort API is based on the http://trac-hacks.org/wiki/XmlRpcPlugin with some custom extensions. We have now taken over maintenance of this open source plugin, and have recently put a lot of effort into upgrading and improving it.

Today we have launched the updated API, and among other things it includes a new JSON-RPC interface in addition to the XML-RPC interface we've had for quite some time.

A simple illustration of what that the JSON-RPC interface looks like:

  1. Make a POST request to https://www.coderesort.com/p/<projectname>/login/jsonrpc with header Content-Type set to application/json and a request body like:
    {"method": "wiki.getPage", "params": ["WikiStart"]}
    
  2. Parse and use the response:
    {"id": 123, "error": null, "result": "= Welcome to....
    

There are clients that work with the API, like Eclipse Mylyn and some of our own tools we have made available. Further, the API can of course be used for any custom integration with your own information systems - for instance as an interface with a customer support system, or with internal reminder, scheduling, or publishing tools.

See the api project for all the details on how to get started.

Lots of exciting possibilities!

  • Posted: 2009-06-20 12:57 (Updated: 2009-06-20 13:03)
  • Author: simon
  • Categories: news

Comments

No comments.