Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mantis Bug tracker API integration?

I have just installed the Mantis bug tracker to use together with Eclipse IDE and have started too found out the advantages of it. Really great.

Since Eclipse communicates with Mantis through an PHP soap API, I wonder if there's some documentation available on how I can myself make calls, from my PHP application to the API to add new bugs and get statuses of existing ones.

Thanks a lot!

like image 755
Industrial Avatar asked May 30 '10 18:05

Industrial


1 Answers

I too was looking for an answer to this and thought I'd add my findings to this question so I can find them again later (and hopefully they're of use to someone else too)

The URL of the SOAP API is $(MANTIS_URI)/api/soap/mantisconnect.php (e.g. if your Mantis is usually accessed at http://localhost/mantis/ then go to http://localhost/mantis/api/soap/mantisconnect.php)

It uses NuSOAP which means that if you point your web browser at that URL you get HTML documentation of the web service; most of the actions seem to have sensible names and a one-line description of what it does. The WSDL can be downloaded at $(MANTIS_URI)/api/soap/mantisconnect.php?wsdl and, because I'm using C#, running wsdl.exe on that URL gives me a basic strongly-typed client library for the service that seems pretty easy to work with.

like image 106
Dave Turner Avatar answered Nov 09 '22 13:11

Dave Turner