Page 1 of 1

API connection to Unity Game Engine

Posted: 27 Oct 2017, 08:49
by headlesjp
Hello!

So I have been a fan of MantisBT for a while now, and we want to integrate the bugtracker with our game development engine so that we can allow players to submit bugs directly from inside the game.
I read about the SOAP Api, but
1. The documentation is confusing
2. There are little or no tutorials regarding the use

Calling a SOAP service is a little difficult from inside the engine, and while I could write a native plugin (using C#), that would mean I would have to re write the plugin on Objective C and Java when I move to a different platform. And this is under the assumption that I can actually get it working. So my questions turns into...

Can someone point in the direction of a resource that I can use to learn how to use the MantisBT api?

Thanks in advance.

Re: API connection to Unity Game Engine

Posted: 27 Oct 2017, 13:41
by atrol
AFAIK there is not that much documentation for SOAP
Might help a bit https://www.mantisbt.org/bugs/api/soap/ ... t.php?wsdl
https://stackoverflow.com/questions/293 ... ntegration

Maybe the new REST API is an option for you.
It can be used as an experimental feature since some months https://www.mantisbt.org/bugs/view.php?id=22598
and will be enabled by default starting with version 2.8 https://www.mantisbt.org/bugs/view.php?id=23516

I don't use any of the API's myself, so don't expect more from my side.

Re: API connection to Unity Game Engine

Posted: 27 Oct 2017, 21:40
by headlesjp
Hi Atrol!

Thanks for he reply!

I am going to look into this, thank you!

If anyone else has made integrations with Mantis I would love to pick your brain. I am planning on releasing my tool as an open source tool for game developers. So hopefully I can get it going soon.

JP

Re: API connection to Unity Game Engine

Posted: 27 Oct 2017, 23:33
by headlesjp
So am progressing, I finally know how to start calling the Rest API.


The big problem am having is that whenever I try to execute a request, am getting a 404 reply from the server.

Apparently, it's adding the root folder to the mantis director so when the reply is looking for index.php
it's coming out like this:

mantisbt/mantisbt/api/rest/index.php

where the actual file is in

mantisbt/api/rest/index.php

Anyone has a clue on why this is happening in the response? I checked the htaccess file and there's no changes, it's as it should be out of the box.

Thanks again!
Learning a lot!
JP

Re: API connection to Unity Game Engine

Posted: 28 Oct 2017, 02:06
by headlesjp
So apparently my previous issue was around the .htaccess that's in the rest folder, which makes the SLIM framework happen, but since am running on a shared hosting I can't be adding a virtual host (or at least I don't know how). But I was able to work around it.

Yet I am at a point of frustration since the api has no clear documentation on how to see some information, trying to post to the issues isn't working (lots of obscure data needs to be sent) and then even then I have no idea if I can work around this.

Again, if anyone has any documentation or examples I could use I would really appreciate it!

JP

Re: API connection to Unity Game Engine

Posted: 28 Oct 2017, 06:42
by atrol
You could write to our Gitter channel where there developers are listening.
At least one of them knows how to use the REST API (the one who implemented it)
https://gitter.im/mantisbt/mantisbt

I just remembered an example of SOAP usage.
Its written in JavaScript, e.g. this the place where an issue is created
https://github.com/cgaspard/mantiskanba ... is.js#L336

Re: API connection to Unity Game Engine

Posted: 04 Nov 2017, 20:19
by rombert
There are two points here:

- making SOAP calls from your program
- actually using the SOAP API methods

For the first one I can't help you except for Java, where I know of for instance of https://github.com/Mylyn-Mantis/mylyn-m ... lient.java . For the second one, what exactly are you trying to achieve with the Mantis API?