Métodos HTTP
Um endpoint por verbo HTTP. Cada caminho aceita só o próprio verbo, então qualquer outro recebe 405 com o cabeçalho Allow.
Grátis: estes endpoints não precisam de conta.
- GETPOSTPUTPATCHDELETEHEADOPTIONS
https://api.testingapis.com/api/methods/anyAccepts any verb and describes the request. - DELETE
https://api.testingapis.com/api/methods/deleteAccepts only DELETE and echoes any body sent with it. - GET
https://api.testingapis.com/api/methods/getAccepts only GET and describes the request. - HEAD
https://api.testingapis.com/api/methods/headAccepts only HEAD and answers with headers only. - OPTIONS
https://api.testingapis.com/api/methods/optionsAccepts only OPTIONS and lists the per-verb test endpoints. - PATCH
https://api.testingapis.com/api/methods/patchAccepts only PATCH and echoes the body. - POST
https://api.testingapis.com/api/methods/postAccepts only POST and echoes the body. - PUT
https://api.testingapis.com/api/methods/putAccepts only PUT and echoes the body.
Requisição de exemplo
Accepts only GET and describes the request. Referência completa e botão Send (em inglês).
cURL
curl -X GET "https://api.testingapis.com/api/methods/get"Resposta · 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"
}