You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
662 B
13 lines
662 B
# -*- coding: utf-8 -*-
|
|
import io, json, sys
|
|
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
|
|
d = json.loads(open('.scratch/customer-integration-ready/specimens-doc-truth.json', encoding='utf-8').read())
|
|
print('== doc-truth keys ==')
|
|
for k in d:
|
|
print(' ', k, '| resp_len =', len(json.dumps(d[k].get('response'), ensure_ascii=False)))
|
|
print()
|
|
print('== assign entry 全文 ==')
|
|
print(json.dumps(d.get('POST /api/customer/transfer/assign'), ensure_ascii=False, indent=1))
|
|
print()
|
|
print('== initiate entry(拿 transferId/明细 id)==')
|
|
print(json.dumps(d.get('POST /api/customer/transfer/initiate'), ensure_ascii=False, indent=1)[:1500])
|
|
|