Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does trac have remote API?

Tags:

api

trac

I know there is xmlrpc plugin for trac. But I is not my trac site nor do I have admin rights. I just have a normal user account with limited priviledges.

Beside the obvious low level of doing things (submitting requests by emulating web browser), is there a better way to do this?

I'm interested mainly in these:

  • View wiki page
  • Edit wiki page
  • Submit new ticket
  • View Ticket
  • Add comment to ticket
like image 821
Kugel Avatar asked Feb 21 '10 03:02

Kugel


2 Answers

If you look at the "functional testing" in the Trac source, you'll find that we have code that exercises Trac using twill. You might find that to be a useful starting point for doing this sort of thing.

like image 121
retracile Avatar answered Nov 13 '22 19:11

retracile


Trac does not provide an API by default. You might install the XmlRpcPlugin. Trac then provides anonymous and authenticated access to an API via two protocols: XML-RPC and JSON-RPC.

A helper library for easier access is https://github.com/jakoch/PHPTracRPC

like image 42
Jens A. Koch Avatar answered Nov 13 '22 20:11

Jens A. Koch