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

feat: Gate HTTP API #423

Merged
merged 33 commits into from
Nov 20, 2024
Merged

feat: Gate HTTP API #423

merged 33 commits into from
Nov 20, 2024

Conversation

robinbraemer
Copy link
Member

@robinbraemer robinbraemer commented Nov 12, 2024

An HTTP API was built into Gate that allows interaction with Gate cross-language.

The goal is to solve #20

The HTTP API will be for everyone who likes to integrate with Gate outside of the Go process and in any favorite language without needing to compile Gate as a library with your extension.

Use cases:

  • As a Spigot plugin developer I need to get player/server data from Gate
  • As an Admin I can automate processes for multiple Gates easier
  • As a JS/TS developer I want a dashboard for my Gate network
  • As a Python developer I want to extend Gate

What else could you think of?

@robinbraemer robinbraemer changed the title feat: Gate API feat: Gate HTTP API Nov 12, 2024
Copy link

cloudflare-workers-and-pages bot commented Nov 16, 2024

Deploying gate-minekube with  Cloudflare Pages  Cloudflare Pages

Latest commit: a24c4f9
Status: ✅  Deploy successful!
Preview URL: https://648ddc37.gate-minekube.pages.dev
Branch Preview URL: https://feat-api.gate-minekube.pages.dev

View logs

robinbraemer and others added 8 commits November 20, 2024 09:48
* feat: Addition/Removal of servers

* feat: updateservers instead of add/remove

you can now update servers in bulk

* feat: remove servers using only name or address

can remove servers now using name or address or by having both

* feat: updateplayer func to kick/send player

can send/kick player(s) now using the same type of operation method like servers, you can provide reason for kicking.

* refactor: favour idiomatic api

---------

Co-authored-by: robinbraemer <robin.braemer@web.de>
@robinbraemer robinbraemer marked this pull request as ready for review November 20, 2024 14:51
@robinbraemer robinbraemer merged commit e960e6b into master Nov 20, 2024
7 checks passed
@robinbraemer robinbraemer deleted the feat/api branch November 20, 2024 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants