7
7
name : Jupyter Project
8
8
url : https://jupyter.org
9
9
# will be prefixed to all paths
10
- basePath : /api
10
+ basePath : /
11
11
produces :
12
12
- application/json
13
13
consumes :
@@ -53,7 +53,9 @@ parameters:
53
53
type : string
54
54
55
55
paths :
56
- /contents/{path} :
56
+
57
+
58
+ /api/contents/{path} :
57
59
parameters :
58
60
- $ref : ' #/parameters/path'
59
61
get :
@@ -252,7 +254,7 @@ paths:
252
254
description : URL for the removed file
253
255
type : string
254
256
format : url
255
- /contents/{path}/checkpoints :
257
+ /api/ contents/{path}/checkpoints :
256
258
parameters :
257
259
- $ref : ' #/parameters/path'
258
260
get :
@@ -310,7 +312,7 @@ paths:
310
312
reason :
311
313
type : string
312
314
description : Explanation of error reason
313
- /contents/{path}/checkpoints/{checkpoint_id} :
315
+ /api/ contents/{path}/checkpoints/{checkpoint_id} :
314
316
post :
315
317
summary : Restore a file to a particular checkpointed state
316
318
parameters :
@@ -342,7 +344,7 @@ paths:
342
344
responses :
343
345
204 :
344
346
description : Checkpoint deleted
345
- /sessions/{session} :
347
+ /api/ sessions/{session} :
346
348
parameters :
347
349
- $ref : ' #/parameters/session'
348
350
get :
@@ -380,7 +382,7 @@ paths:
380
382
description : Session (and kernel) were deleted
381
383
410 :
382
384
description : " Kernel was deleted before the session, and the session was *not* deleted (TODO - check to make sure session wasn't deleted)"
383
- /sessions :
385
+ /api/ sessions :
384
386
get :
385
387
summary : List available sessions
386
388
tags :
@@ -422,7 +424,7 @@ paths:
422
424
short_message :
423
425
type : string
424
426
425
- /kernels :
427
+ /api/ kernels :
426
428
get :
427
429
summary : List the JSON data for all kernels that are currently running
428
430
tags :
@@ -457,7 +459,7 @@ paths:
457
459
description : Model for started kernel
458
460
type : string
459
461
format : url
460
- /kernels/{kernel_id} :
462
+ /api/ kernels/{kernel_id} :
461
463
parameters :
462
464
- $ref : ' #/parameters/kernel'
463
465
get :
@@ -476,7 +478,7 @@ paths:
476
478
responses :
477
479
204 :
478
480
description : Kernel deleted
479
- /kernels/{kernel_id}/interrupt :
481
+ /api/ kernels/{kernel_id}/interrupt :
480
482
parameters :
481
483
- $ref : ' #/parameters/kernel'
482
484
post :
@@ -486,7 +488,7 @@ paths:
486
488
responses :
487
489
204 :
488
490
description : Kernel interrupted
489
- /kernels/{kernel_id}/restart :
491
+ /api/ kernels/{kernel_id}/restart :
490
492
parameters :
491
493
- $ref : ' #/parameters/kernel'
492
494
post :
@@ -504,7 +506,7 @@ paths:
504
506
schema :
505
507
$ref : ' #/definitions/Kernel'
506
508
507
- /kernelspecs :
509
+ /api/ kernelspecs :
508
510
get :
509
511
summary : Get kernel specs
510
512
tags :
@@ -522,7 +524,7 @@ paths:
522
524
type : object
523
525
additionalProperties :
524
526
$ref : ' #/definitions/KernelSpec'
525
- /config/{section_name} :
527
+ /api/ config/{section_name} :
526
528
get :
527
529
summary : Get a configuration section by name
528
530
parameters :
@@ -550,7 +552,7 @@ paths:
550
552
schema :
551
553
type : object
552
554
553
- /terminals :
555
+ /api/ terminals :
554
556
get :
555
557
summary : Get available terminals
556
558
tags :
@@ -581,7 +583,7 @@ paths:
581
583
404 :
582
584
description : Not found
583
585
584
- /terminals/{terminal_id} :
586
+ /api/ terminals/{terminal_id} :
585
587
get :
586
588
summary : Get a terminal session corresponding to an id.
587
589
tags :
@@ -615,14 +617,29 @@ paths:
615
617
616
618
617
619
618
- /status :
620
+ /api/ status :
619
621
get :
620
- summary : Get the current status / activity of the server
622
+ summary : Get the current status/activity of the server.
623
+ tags :
624
+ - status
621
625
responses :
622
626
200 :
623
627
description : The current status of the server
624
628
schema :
625
629
$ref : ' #/definitions/APIStatus'
630
+
631
+ /api/spec.yaml :
632
+ get :
633
+ summary : Get the current spec for the notebook server's APIs.
634
+ tags :
635
+ - api-spec
636
+ produces :
637
+ - text/x-yaml
638
+ responses :
639
+ 200 :
640
+ description : The current spec for the notebook server's APIs.
641
+ schema :
642
+ type : file
626
643
definitions :
627
644
APIStatus :
628
645
description : |
0 commit comments