Name: /api/get-token
Request:
| url | http://127.0.0.1:5000/api/get-token |
|---|---|
| method | POST |
| headers |
User-Agent: python-requests/2.18.4
Accept-Encoding: gzip, deflate
Accept: */*
Connection: keep-alive
Content-Type: application/json
app_version: 2.8.6
device_sn: rmZg1EL9KrDTxKB
os_platform: ios
Content-Length: 52
|
| body | {"sign": "bd37c4f16cacb2bede7d9c853cc86b1fe36bfce6"} |
Response:
| ok | True |
|---|---|
| url | http://127.0.0.1:5000/api/get-token |
| status_code | 200 |
| reason | OK |
| cookies | {} |
| encoding | None |
| headers |
Content-Type: application/json
Content-Length: 46
Server: Werkzeug/0.14.1 Python/3.6.5+
Date: Sun, 27 Jan 2019 03:52:50 GMT
|
| content_type | application/json |
| json | {'success': True, 'token': 'PQTsjHOpmXulNB3l'} |
Validators:
| check | comparator | expect value | actual value |
|---|---|---|---|
| status_code | eq | 200 | 200 |
| headers.Content-Type | eq | application/json | application/json |
| content.success | eq | True | True |
Statistics:
| content_size(bytes) | 46 |
|---|---|
| response_time(ms) | 10.05 |
| elapsed(ms) | 3.483 |