国家/地区查询


查询 1. 所有国家/地区
Method GET /region
查询 2. 国家/地区 (出发地)
Method GET /region/initiation
查询 3. 国家/地区 (目的地)
Method GET /region/destination

Query 参数

limit, skip, keywords, sort

Request Example

GET /region?limit=10&skip=0&keyword=america,canada&sort[]=regionName:desc&sort[]=countryCode:asc

Response

参数 说明
regionName 国家/地区 名称 例: Canada
countryCode 电话代码 例: 1
regionCode 国家或地区 代码 例: CA

Reponse Example

{
    "sucess": true,
    "elapsed": "469ms",
    "query": {
        "id": "7f16f1b0-61bf-11eb-ae75-75abac9d9f41",
        "timestamp": "1612787783",
        "signature": "+urbip5Mtldg+GXB3drcS/J9dehNjV+fW9lse0avkgw=",
        "api": "/region"
    },
    "result": {
        "count": 2,
        "rows": [
            {
                "regionName": "Canada",
                "countryCode": "1",
                "regionCode": "CA"
            },
            {
                "regionName": "United States of America",
                "countryCode": "1",
                "regionCode": "US"
            }
        ],
        "limit": "10",
        "skip": "0"
    }
}