实用工具
在 API 测试中串联请求时好用的小端点:ID、时间、编码、哈希、随机数据、lorem ipsum 和 JWT 检查。
你的账号已解锁这些端点。在每个端点的页面上用 Try it 发送请求。
- GET
https://api.testingapis.com/api/utils/base64/decodeDecode a base64 stringDecode a base64 string. - GET
https://api.testingapis.com/api/utils/base64/encodeBase64-encode UTF-8 textBase64-encode UTF-8 text. - GET
https://api.testingapis.com/api/utils/hashHash UTF-8 textHash UTF-8 text. - GET
https://api.testingapis.com/api/utils/hmacCompute an HMAC of UTF-8 textCompute an HMAC of UTF-8 text. - GET
https://api.testingapis.com/api/utils/jwt/decodeDecode a JWT without verifying its signatureDecode a JWT without verifying its signature. - GET
https://api.testingapis.com/api/utils/loremGenerate lorem ipsum textGenerate lorem ipsum text. - GET
https://api.testingapis.com/api/utils/random/numberGenerate random integersGenerate random integers. - GET
https://api.testingapis.com/api/utils/random/stringGenerate a random stringGenerate a random string. - GET
https://api.testingapis.com/api/utils/timeReturn the current time in many formatsReturn the current time in many formats. - GET
https://api.testingapis.com/api/utils/url/decodePercent-decode a stringPercent-decode a string. - GET
https://api.testingapis.com/api/utils/url/encodePercent-encode textPercent-encode text (RFC 3986). - GET
https://api.testingapis.com/api/utils/uuidGenerate one or more UUIDsGenerate one or more UUIDs.
请求示例
Decode a base64 string. 完整参考和 Send 按钮(英文).
cURL
curl -X GET "https://api.testingapis.com/api/utils/base64/decode?value=aGVsbG8gd29ybGQ%3D"响应 · 200 OK
{
"input": "aGVsbG8gd29ybGQ=",
"decoded": "hello world",
"isUtf8": true,
"hex": "68656c6c6f20776f726c64",
"length": 11
}