HTTP 方法

每个 HTTP 方法一个端点。每个路径只接受自己的方法,其他方法都会收到带 Allow 响应头的 405。

免费:这些端点无需账号。

请求示例

Accepts only GET and describes the request. 完整参考和 Send 按钮(英文).

cURL
curl -X GET "https://api.testingapis.com/api/methods/get"
响应 · 200 OK
{
  "method": "GET",
  "message": "GET request received",
  "path": "/api/methods/get",
  "query": {},
  "contentType": null,
  "bodyLength": 0,
  "bodyTruncated": false,
  "body": null,
  "timestamp": "2026-09-30T18:26:36Z"
}