Files
waf-platform/HttpDNSSDK/spec/resolve-api.md

18 lines
486 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Resolve API 规范
## 目标
- 统一 Android / iOS / Flutter 对 `/resolve` 的请求与响应语义。
## 请求参数
- `appId`: 应用标识
- `dn`: 待解析域名
- `qtype`: `A``AAAA`
- `sdk_version`: SDK 版本号
- `os`: 平台标识android/ios/flutter
- `sid`: 会话标识
## 响应语义
- `code=SUCCESS``records` 非空:返回可用 IP 列表
- `code=SUCCESS``records` 为空:视为无解析记录
-`SUCCESS`:按错误码处理降级