Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idea: txAdmin simple REST API #179

Closed
djmetla opened this issue Aug 3, 2020 · 32 comments
Closed

Idea: txAdmin simple REST API #179

djmetla opened this issue Aug 3, 2020 · 32 comments
Labels
enhancement New feature or request

Comments

@djmetla
Copy link

djmetla commented Aug 3, 2020

It is possible? Simple endpoint for web requests for RESTART, START, STOP server authenticated with token Bearer or something else? Maybe oAuth?

@Trsak
Copy link
Contributor

Trsak commented Aug 15, 2020

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.

@DmACKGL
Copy link

DmACKGL commented Oct 5, 2020

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.

@gideongrinberg
Copy link

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.

@tabarra tabarra added the enhancement New feature or request label Dec 27, 2020
@NoobKeksTV
Copy link

Maybe also an api for getting the playtime of a player?

@Gravxd
Copy link
Contributor

Gravxd commented Jan 21, 2021

Having an api with an auth system to issue server commands like restart or just console based command in general

@HypeLevels
Copy link
Contributor

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.

@Gravxd
Copy link
Contributor

Gravxd commented Jan 21, 2021

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.

@udit2303
Copy link

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.

@PLOKMJNB
Copy link
Contributor

Me want API too please, I give cookie too

@AvarianKnight
Copy link
Contributor

API When? Sounds neat

@coleminer0112
Copy link

coleminer0112 commented Apr 30, 2021

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

@Nimplex
Copy link
Contributor

Nimplex commented May 4, 2021

Great idea! REST API will be very useful when creating for example a discord bot that will have integration with the server.

@caeptnlaen
Copy link

Please API

@n0tsiege
Copy link

+1 we want an API

@xDreamLand
Copy link

+1 yes api

@Arm-0001
Copy link

+1 api or no more menu 🔫

@Nimplex
Copy link
Contributor

Nimplex commented Jul 16, 2021

+1 api

@TasoOneAsia
Copy link
Collaborator

-1

@NoobKeksTV
Copy link

+1

@tabarra
Copy link
Owner

tabarra commented Jul 18, 2021

+1

Hey sir! No double voting! lmao

@wowjeeez
Copy link
Contributor

tx rest api best rest api

@kotzeimer
Copy link

+1

@Nimplex
Copy link
Contributor

Nimplex commented Aug 5, 2021

Well, we can use RCON actually but REST API would be very cool thing

@Arm-0001
Copy link

Arm-0001 commented Aug 5, 2021

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

@TasoOneAsia
Copy link
Collaborator

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.

@ghost
Copy link

ghost commented Aug 28, 2021

😭😢

@SticksDev
Copy link

rest api +1

@tabarra
Copy link
Owner

tabarra commented Sep 18, 2021

This issue lacks a bit of focus, so I would like to invite anyone interest in using the new issue: #442

@tabarra tabarra closed this as completed Sep 18, 2021
@eXahostCOM
Copy link

rest api +1

@Aimbas
Copy link

Aimbas commented Jan 23, 2022

+1

1 similar comment
@GravityScriptsV2
Copy link

+1

@Nimplex
Copy link
Contributor

Nimplex commented Jan 26, 2022

This issue lacks a bit of focus, so I would like to invite anyone interest in using the new issue: #442

^^^^

Repository owner locked as resolved and limited conversation to collaborators Jan 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests