Skip to content

Status REST API #783

Status REST API #783
Dec 2, 2021 · 3 comments

NullDev wrote at May 7 2018 13:40:26 UTC:

Good Day!

I'm not entirely sure whether I just didn't find it, but is there currently a REST API implemented in Puffer?

Something like a Server Status API maybe.

I am aware that Puffer is a general purpose Game Panel and not MC - Only. So I know stuff like Player Count etc can't be implemented easily. But is there a RESTful API that can be queried for the Online-Status of an Server or maybe even sending commands to the Console?

I'm working on an Internal server management system and it would make stuff much easier if the Panel could be operated headless.

If there already is something like that, is there a documentation available?

And if not, is it planned for the future? (If there are indeed plans, I'd be happy to help out with it!)

Replies

LordRalex
Dec 2, 2021
Maintainer Author

LordRalex wrote at May 7 2018 13:40:26 UTC:

Our incomplete documentation is located at https://speca.io/PufferPanel/pufferd

In your case, status would be similar to start and stop, just is under /status instead.

Commands also exist, however it's a little trickier I think, i'd have to dig into our code to recall how it expects the data.

0 replies

LordRalex
Dec 2, 2021
Maintainer Author

LordRalex wrote at May 7 2018 13:40:26 UTC:

It appears that we do it via a POST to /console for servers.

The body of the post is the command you want to run.

0 replies

LordRalex
Dec 2, 2021
Maintainer Author

NullDev wrote at May 7 2018 13:40:26 UTC:

All right! This is amazing, thank you!

0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Legacy - General Discussion
Labels
None yet
1 participant