From c0833098e8c54b302a865a5fb9e63e0a8d7b2ebc Mon Sep 17 00:00:00 2001 From: Min RK Date: Sat, 12 Aug 2023 13:00:42 +0200 Subject: [PATCH] Add root `/api/` endpoint to REST spec (#1312) --- jupyter_server/services/api/api.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/jupyter_server/services/api/api.yaml b/jupyter_server/services/api/api.yaml index 976e5726f2..2861cf1dfb 100644 --- a/jupyter_server/services/api/api.yaml +++ b/jupyter_server/services/api/api.yaml @@ -63,6 +63,22 @@ parameters: type: string paths: + /api/: + get: + summary: Get the Jupyter Server version + description: | + This endpoint returns only the Jupyter Server version. + It does not require any authentication. + responses: + 200: + description: Jupyter Server version information + schema: + type: object + properties: + version: + type: string + description: The Jupyter Server version number as a string. + /api/contents/{path}: parameters: - $ref: "#/parameters/path"