API connection to Unity Game Engine

Post about your customizations to share with others.

Moderators: Contributor, Developer

API connection to Unity Game Engine

Postby headlesjp » Oct 27, 2017 3:49 am

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.
headlesjp
 
Posts: 4
Joined: Oct 27, 2017 3:44 am

Re: API connection to Unity Game Engine

Postby atrol » Oct 27, 2017 8:41 am

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.
Please use Search before posting and read the Manual
Use Mantis2Go to try MantisBT on Windows or to reproduce issues
atrol
Site Admin
 
Posts: 6711
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: API connection to Unity Game Engine

Postby headlesjp » Oct 27, 2017 4:40 pm

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
headlesjp
 
Posts: 4
Joined: Oct 27, 2017 3:44 am

Re: API connection to Unity Game Engine

Postby headlesjp » Oct 27, 2017 6:33 pm

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
headlesjp
 
Posts: 4
Joined: Oct 27, 2017 3:44 am

Re: API connection to Unity Game Engine

Postby headlesjp » Oct 27, 2017 9:06 pm

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
headlesjp
 
Posts: 4
Joined: Oct 27, 2017 3:44 am

Re: API connection to Unity Game Engine

Postby atrol » Oct 28, 2017 1:42 am

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
Please use Search before posting and read the Manual
Use Mantis2Go to try MantisBT on Windows or to reproduce issues
atrol
Site Admin
 
Posts: 6711
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: API connection to Unity Game Engine

Postby rombert » Nov 04, 2017 3:19 pm

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?
rombert
 
Posts: 60
Joined: Nov 05, 2009 3:43 am


Return to Customizations

Who is online

Users browsing this forum: No registered users and 11 guests