mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-19 13:07:56 +00:00
docs: fix example JSON in webapi.txt to be legal JSON. ;-)
This commit is contained in:
parent
be81d54c5b
commit
5cdc678d24
@ -120,11 +120,11 @@ d. examining files or directories
|
|||||||
|
|
||||||
GET $FILEURL?t=json :
|
GET $FILEURL?t=json :
|
||||||
|
|
||||||
[ 'filenode', { 'ro_uri': file_uri,
|
[ "filenode", { "ro_uri": file_uri,
|
||||||
'size': bytes,
|
"size": bytes,
|
||||||
'metadata': {'ctime': 1202777696.7564139,
|
"metadata": {"ctime": 1202777696.7564139,
|
||||||
'mtime': 1202777696.7564139,
|
"mtime": 1202777696.7564139
|
||||||
},
|
}
|
||||||
} ]
|
} ]
|
||||||
|
|
||||||
If it is a directory, then it includes information about the children of
|
If it is a directory, then it includes information about the children of
|
||||||
@ -136,24 +136,24 @@ d. examining files or directories
|
|||||||
|
|
||||||
GET $DIRURL?t=json :
|
GET $DIRURL?t=json :
|
||||||
|
|
||||||
[ 'dirnode', { 'rw_uri': read_write_uri,
|
[ "dirnode", { "rw_uri": read_write_uri,
|
||||||
'ro_uri': read_only_uri,
|
"ro_uri": read_only_uri,
|
||||||
'children': [
|
"children": {
|
||||||
'foo.txt': [ 'filenode', { 'ro_uri': uri,
|
"foo.txt": [ "filenode", { "ro_uri": uri,
|
||||||
'size': bytes,
|
"size": bytes,
|
||||||
'metadata': {
|
"metadata": {
|
||||||
'ctime': 1202777696.7564139,
|
"ctime": 1202777696.7564139,
|
||||||
'mtime': 1202777696.7564139,
|
"mtime": 1202777696.7564139
|
||||||
},
|
}
|
||||||
} ],
|
} ],
|
||||||
'subdir': [ 'dirnode', { 'rw_uri': rwuri,
|
"subdir": [ "dirnode", { "rw_uri": rwuri,
|
||||||
'ro_uri': rouri,
|
"ro_uri": rouri,
|
||||||
'metadata': {
|
"metadata": {
|
||||||
'ctime': 1202778102.7589991,
|
"ctime": 1202778102.7589991,
|
||||||
'mtime': 1202778111.2160511,
|
"mtime": 1202778111.2160511,
|
||||||
},
|
}
|
||||||
} ],
|
} ]
|
||||||
] } ]
|
} } ]
|
||||||
|
|
||||||
In the above example, note how 'children' is a dictionary in which the keys
|
In the above example, note how 'children' is a dictionary in which the keys
|
||||||
are child names and the values depend upon whether the child is a file or a
|
are child names and the values depend upon whether the child is a file or a
|
||||||
|
Loading…
Reference in New Issue
Block a user