API connection to Unity Game Engine

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
headlesjp
Posts: 4
Joined: 27 Oct 2017, 08:44

API connection to Unity Game Engine

Post 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.
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: API connection to Unity Game Engine

Post 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.
Please use Search before posting and read the Manual
headlesjp
Posts: 4
Joined: 27 Oct 2017, 08:44

Re: API connection to Unity Game Engine

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

Re: API connection to Unity Game Engine

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

Re: API connection to Unity Game Engine

Post 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
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: API connection to Unity Game Engine

Post 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
Please use Search before posting and read the Manual
rombert
Posts: 66
Joined: 05 Nov 2009, 08:43

Re: API connection to Unity Game Engine

Post 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?
Post Reply