New in 2.4: Test runs you can trust See what's new →

响应格式

各种常见内容类型的固定响应,以及内容协商、预压缩的响应体、字符集和用于反向测试的故意损坏的内容。

请求示例

List every available format and special-case endpoint. 完整参考和 Send 按钮(英文).

cURL
curl -X GET "https://api.testingapis.com/api/formats"
在 Studio 中运行
响应 · 200 OK
{
  "formats": ["json", "xml", "… 15 more items"],
  "special": ["jsonp?callback=fn", "negotiate", "… 10 more items"]
}