Re: [jupyter] Re: how to test for running server?

2018-01-18 Thread Tim Harsch
Thank you! I will try to find some time to submit a PR for additional GET method for servers. On Tuesday, January 16, 2018 at 10:40:50 AM UTC-8, Min RK wrote: > > A GET on the user shows their server status(es). If the user is not > running, the server value will be null. If it is running, the

Re: [jupyter] Re: how to test for running server?

2018-01-16 Thread MinRK
A GET on the user shows their server status(es). If the user is not running, the server value will be null. If it is running, the server value will be the URL of the running server. The below results are with the named-servers extension enabled. If it is not enabled, then the servers key may be

[jupyter] Re: how to test for running server?

2017-12-20 Thread Tim Harsch
Right. Sorry, I should have been more clear. In the case of DELETE, if you attempt to DELETE when no server is running you will get a HTTP 400 and no action taken. But, if you DELETE and a server is running then the server stops and you will get HTTP 204(I think). Similar logic for POST.

[jupyter] Re: how to test for running server?

2017-12-20 Thread Lawrence D’Oliveiro
On Wednesday, December 20, 2017 at 11:44:35 AM UTC+13, Tim Harsch wrote: > > I see with JupyterHub API you can POST or DELETE to /users/{name}/server > but there doesn't seem to be a GET. If that's true is there another way I > can test for a running server other than POST or DELETE which have