Closed djmetla closed 3 years ago
Not sure what would this be used for? Why would you need to control server through API and not directly?
After all, you could just create users with server.control
permission.
Not sure what would this be used for? Why would you need to control server through API and not directly?
After all, you could just create users with
server.control
permission.
For more integrations, like admin websites (external for ESX), Discord Bots, Etc.
I also agree with this, we should be able to hook into txAdmin's API programmatically. My usecase for this would be adding scripts that use txAdmin features while still keeping txAdmin for manual work.
Maybe also an api for getting the playtime of a player?
Having an api with an auth system to issue server commands like restart or just console based command in general
Having an api with an auth system to issue server commands like restart or just console based command in general
Console commands can be executed by clicking f8 and typing it in there.
Having an api with an auth system to issue server commands like restart or just console based command in general
Console commands can be executed by clicking f8 and typing it in there.
Apologies I was a little unclear. I was meaning in the context of having an API usable by apps like discord bots.
A REST API would be very useful incase of using bots like discord bots to access txAdmin directly to ban players, warn players, etc. Maybe also add some rate limiting to prevent spam.
Me want API too please, I give cookie too
API When? Sounds neat
TxAdmin android app.. coming soon to Google Play Store!
(Jk, I am not an android developer)
But yes, I agree that an endpoint for a POST request or the like allowing you to interface with your TxAdmin (securely) would be great for a discord bot that, for example, can ban players from the FiveM server automatically if their discord is banned from the server's Discord!
edit: Perhaps the authentication could work by creating a hash of the bot's token, then on the bot side you execute the same hashing algorithm on the token - and that becomes your authentication key for allowing API actions in TxAdmin? This obviously would mean that the bot's developer would need to Gatekeep very well and prevent unauthorized use of this by those they don't want interacting with TxAdmin's functions.. but the option would perhaps be useful to some servers
Great idea! REST API will be very useful when creating for example a discord bot that will have integration with the server.
Please API
+1 we want an API
+1 yes api
+1 api or no more menu 🔫
+1 api
-1
+1
+1
Hey sir! No double voting! lmao
tx rest api best rest api
+1
Well, we can use RCON actually but REST API would be very cool thing
Well, we can use RCON actually but REST API would be very cool thing
don't think rest API is every coming unless someone other than tabby makes it cause he is l a z y eks dee
Very funny Hamy, now let the contributors talk. REST API was in the task list for after stable menu release but at this time, currently unknown timeline.
ðŸ˜ðŸ˜¢
rest api +1
This issue lacks a bit of focus, so I would like to invite anyone interest in using the new issue: #442
rest api +1
+1
+1
This issue lacks a bit of focus, so I would like to invite anyone interest in using the new issue: #442
^^^^
It is possible? Simple endpoint for web requests for RESTART, START, STOP server authenticated with token Bearer or something else? Maybe oAuth?