mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 06:52:59 +00:00
Updated the server-api file with all comments
This commit is contained in:
@@ -260,6 +260,8 @@ Servers can be stopped with a DELETE request:
|
||||
DELETE /hub/api/users/:user/servers/[:servername]
|
||||
```
|
||||
|
||||
**Required scope: `servers`**
|
||||
|
||||
Similar to when starting a server, issuing the DELETE request above might not stop the server immediately. Instead, the DELETE request has two possible response codes:
|
||||
|
||||
204 Deleted
|
||||
@@ -270,7 +272,8 @@ It will now be absent from the user `servers` model.
|
||||
: This code means your request was accepted, but is not yet completely processed.
|
||||
The server has `pending: 'stop'` at this point.
|
||||
|
||||
There is no progress API for checking when a server actually stops. Thus, the only available alternative is to poll the server and wait for it to disappear from the user `servers` model.
|
||||
There is no progress API for checking when a server actually stops.
|
||||
Thus, the only available alternative is to poll the server and wait for it to disappear from the user `servers` model.
|
||||
|
||||
This Python code snippet can be used to check if a server stops:
|
||||
|
||||
|
Reference in New Issue
Block a user