You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: jupyter_server/services/api/api.yaml
+8-6Lines changed: 8 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -106,9 +106,9 @@ paths:
106
106
in: query
107
107
description: "Return content (0 for no content, 1 for return content)"
108
108
type: integer
109
-
- name: md5
109
+
- name: hash
110
110
in: query
111
-
description: "Return md5 hexdigest string of content (0 for no md5, 1 for return md5)"
111
+
description: "May return hash hexdigest string of content and the hash algorithm (0 for no hash - default, 1 for return hash). It may be ignored by the content manager."
112
112
type: integer
113
113
responses:
114
114
404:
@@ -889,7 +889,7 @@ definitions:
889
889
kernel:
890
890
$ref: "#/definitions/Kernel"
891
891
Contents:
892
-
description: "A contents object. The content and format keys may be null if content is not contained. The md5 maybe null if md5 is not contained. If type is 'file', then the mimetype will be null."
892
+
description: "A contents object. The content and format keys may be null if content is not contained. The hash maybe null if hash is not required. If type is 'file', then the mimetype will be null."
893
893
type: object
894
894
required:
895
895
- type
@@ -901,7 +901,6 @@ definitions:
901
901
- mimetype
902
902
- format
903
903
- content
904
-
- md5
905
904
properties:
906
905
name:
907
906
type: string
@@ -939,9 +938,12 @@ definitions:
939
938
format:
940
939
type: string
941
940
description: Format of content (one of null, 'text', 'base64', 'json')
942
-
md5:
941
+
hash:
943
942
type: string
944
-
description: "The md5 hexdigest string of content, if requested (otherwise null)."
943
+
description: "[optional] The hexdigest hash string of content, if requested (otherwise null). It cannot be null if hash_algorithm is defined."
944
+
hash_algorithm:
945
+
type: string
946
+
description: "[optional] The algorithm used to produce the hash, if requested (otherwise null). It cannot be null if hash is defined."
0 commit comments