Create and get API token using the REST API itself
Posted: 11 Aug 2018, 12:01
Hello,
I got a client here who wants to communicate his system with a bug tracker. So I thought that MantisBT using the REST Api would be the solution.
The thing is that he wants to evade at all the BT interface, and here it comes the problem. When creating a new user, I need to automatically create the API token for this user. And in addition, I would need to retrieve that token using username and password.
I was already implementing this solution hacking the MantisBT code but first I decided to come here to ask if you'd know a better solution. Because this is not supported in the REST API, is it?
Thank you and best regards,
Ignacio
I got a client here who wants to communicate his system with a bug tracker. So I thought that MantisBT using the REST Api would be the solution.
The thing is that he wants to evade at all the BT interface, and here it comes the problem. When creating a new user, I need to automatically create the API token for this user. And in addition, I would need to retrieve that token using username and password.
I was already implementing this solution hacking the MantisBT code but first I decided to come here to ask if you'd know a better solution. Because this is not supported in the REST API, is it?
Thank you and best regards,
Ignacio