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

Add server status packet #640

Open
Ivorforce opened this issue Aug 31, 2014 · 2 comments
Open

Add server status packet #640

Ivorforce opened this issue Aug 31, 2014 · 2 comments

Comments

@Ivorforce
Copy link
Member

It would be good to have a status packet to query the server's current status (OK, uploads disabled, under maintenance, down, [...]).

It would look a bit like

GET /api/server/status

{
    "status": "ok"
}

The use-cases should be pretty obvious: Conveying this to any application for it to be able to do some interpretation based on it.

@jdiez17
Copy link
Member

jdiez17 commented Sep 17, 2014

It's a good idea, but what if the backend server is down? Then that endpoint wouldn't even work. Maybe have https://status.mediacru.sh (hosted elsewhere), and return a similar response?

@Ivorforce
Copy link
Member Author

Sure, that works.
I was simply thinking that if the server is down, I'll just get an error and handle that as a status ('Server Offline').

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

No branches or pull requests

2 participants