asWsSiteList 处理后的 siteList , 也可以用 getWsSiteInfo("1TaLkFrMwvbNsooF4ioKAY9EuxTBTjipT") 得到

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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
"address": "1TaLkFrMwvbNsooF4ioKAY9EuxTBTjipT",
"background-color": "#F5F5F5",
"background-color-dark": "#2e2b32",
"cloneable": true,
"description": "Decentralized forum with ZeroID",
"domain": "Talk.ZeroNetwork.bit",
"files": {
"css/all.css": {
"sha512": "405709626d6f071a1cc6a4c3a55b29865a0d5e0477f1d170bc99cd3c3c726588",
"size": 169392
},
"data-default/users/content-default.json": {
"sha512": "c1642cc2922a74c3e74991f0194e2acc46dc5e003207a0028dad63c75c41a0ec",
"size": 672
},
"dbschema.json": {
"sha512": "8e39a7ad3d85fc2c2bf3437a51ba625ea174ac8401e4bf8bc4469ec04f480ebf",
"size": 3112
},
"img/edit.png": {
"sha512": "60ba4297e205b038bf7852ead2b88f9373cd8848408bb258dbcebb086d43f056",
"size": 237
},
"img/loading.gif": {
"sha512": "8a42b98962faea74618113166886be488c09dad10ca47fe97005edc5fb40cc00",
"size": 723
},
"img/topic-chat.png": {
"sha512": "f41719987d5f5d797591857648c0d4cf33a11d7f1a42428a2456c28e0957c88e",
"size": 238
},
"img/topic-group.png": {
"sha512": "1f9305544e3350d62f0c76caf5202e256848206d18485e0451dc050201f86a7b",
"size": 310
},
"index.html": {
"sha512": "62b4a96a73fbe9e43c59c2504f49f84ff51f650fa4df3fbc87e620a6c412d9d3",
"size": 8617
},
"js/all.js": {
"sha512": "a6d8192d493d6753a5748404737de1433517e1f48a7f54216dae6d6ed39e4f26",
"size": 233027
},
"languages/da.json": {
"sha512": "822c90a229d428db7ad2a9e421bfb80f57bae8b58cb6fd45df407b1aee0fbd5f",
"size": 1178
},
"languages/fr.json": {
"sha512": "43be0c5d823e5e3863e710ddc386ee6be596118472c47ad6150372e9d9e61391",
"size": 1193
},
"languages/hu.json": {
"sha512": "844c4036c6f8874d7ea82dd68e6337051099cd4674bed1ba647a0607ac878981",
"size": 1235
},
"languages/it.json": {
"sha512": "79df61d1baa95dc9a1095296897cebfe1db0608effd4c0f7ae398b5d5dc702ab",
"size": 1224
},
"languages/pl.json": {
"sha512": "eb9d7572cf4c76ed71f1c4c15a766128203b574008ae5bfe6a12caefdbc033a6",
"size": 1623
},
"languages/sk.json": {
"sha512": "ae9dee9ca7d65cc3fa74bec8d020b8c9b0f381f1357fbcaabb6323437a545d17",
"size": 1330
},
"languages/uk.json": {
"sha512": "0fb443d489b5dfc808cc565b4e0247dad1f4ed1ad72652bac82f4794ff4ec816",
"size": 1564
},
"languages/zh-tw.json": {
"sha512": "e0d65cdd6c244d85af64e37d8c3cfd3afceb6fef5217d0dc65bd5dedc9d8461b",
"size": 1811
},
"languages/zh.json": {
"sha512": "6af6e63c4c15c860276024413fc4baf9fb74ca3d4f209dfc8860cdf7c8a07158",
"size": 1813
}
},
"ignore": "((js|css)/(?!all.(js|css))|data/users/.*db|data/users/.*|data/archived/.*|.*.py)",
"includes": {
"data/users/content.json": {
"signers": [],
"signers_required": 1
}
},
"inner_path": "content.json",
"modified": 1555237623,
"postmessage_nonce_security": true,
"settings": {
"admin": "nofish",
"admin_href": "http://127.0.0.1:43110/Mail.ZeroNetwork.bit/?to=nofish",
"topic_sticky_uris": [
"2_1J3rJ8ecnwH2EPYa6MrgZttBNc61ACFiCj",
"8_1J3rJ8ecnwH2EPYa6MrgZttBNc61ACFiCj"
]
},
"signers_sign": "G2/6ljsXbej7laqD3JUGsa8IEgSGE+NZs2jg9reQ3vrlXLgsYX67t9yRcqOuRnKxuC+4+XPo/XdVztlERvr9viI=",
"signs": {
"1TaLkFrMwvbNsooF4ioKAY9EuxTBTjipT": "HNM7/FkCnJDTl8Q4mEEXAZXQ/c9yLVPFng2eiIETfRXKbx996vt1dQzgs61RFAXihm67O3zJuPh4RdLWTE55DtM="
},
"signs_required": 1,
"title": "ZeroTalk",
"translate": [
"index.html",
"js/all.js"
],
"viewport": "width=device-width, initial-scale=0.8",
"zeronet_version": "0.6.4",
"added": 1530244591,
"ajax_key": "76d7000be6c72d705d375fe8b087b09d2882ff3e80a854324513dc813ae5fc63",
"auth_key": "f649d941621f16063f7eacbf4c638e5ebd16dea3cda9e455e8c85d9cf69c1ba7",
"bytes_recv": 117282805,
"bytes_sent": 35591983,
"cache": {
"bad_files": {},
"hashfield": ""
},
"downloaded": 1530244591,
"optional_downloaded": 0,
"own": false,
"peers": 95,
"permissions": [],
"serving": true,
"size": 21974527,
"size_limit": 100,
"size_optional": 422141,
"wrapper_key": "990d89e4397cd917d8fcfc971329e7d4bdfc7440b816c78f628cb446fd13ca0b"
}

测试

1
2
3
4
5
6
7
8
9
10
11
12
13
14
PUT http://127.0.0.1:9200/sites/_doc/1TaLkFrMwvbNsooF4ioKAY9EuxTBTjipT
{
"background_color": "#F5F5F5",
"cloneable": true,
"description": "Decentralized forum with ZeroID",
"domain": "Talk.ZeroNetwork.bit",
"files_number": 2,
"modified": 1555237623,
"title": "ZeroTalk",
"zeronet_version": "0.6.4",
"added": 1530244591,
"size": 21974527,
"size_optional": 422141
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
201 Created
{
"_index": "sites",
"_type": "_doc",
"_id": "1TaLkFrMwvbNsooF4ioKAY9EuxTBTjipT",
"_version": 1,
"result": "created",
"_shards": {
"total": 2,
"successful": 1,
"failed": 0
},
"_seq_no": 0,
"_primary_term": 1
}