Repository navigation
Expand file tree
/
Copy pathexecute-api.yaml
More file actions
64 lines (62 loc) · 1.69 KB
/
Copy pathexecute-api.yaml
File metadata and controls
64 lines (62 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
openapi: 3.1.0
info:
title: server-side execution API
description: |
Server-side cell execution endpoint
Jupyter Server extension
version: "0.1"
contact:
name: Jupyter Project
url: https://jupyter.org
license:
name: BSD-3-Clause
url: https://github.com/jupyter-server/server-side-documents/blob/main/LICENSE
security: []
servers:
- url: /
tags:
- name: executions
description: Server-side cell execution (authorization resource `executions`)
paths:
/api/kernels/{kernel_id}/execute:
post:
summary: Enqueue notebook cells for server-side execution
operationId: executeCells
tags: [executions]
parameters:
- name: kernel_id
in: path
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [document_id, cells]
properties:
document_id:
type: string
cells:
type: array
items:
type: object
required: [cell_id, source_hash]
properties:
cell_id:
type: string
source_hash:
type: string
client_id:
type: string
sequence:
type: integer
request_id:
type: string
responses:
"200":
description: Cells enqueued. The body is JSON null.
"409":
description: Source mismatch or session reset.