Méthodes HTTP
Un point d’accès par verbe HTTP. Chaque chemin n’accepte que son propre verbe : tout autre verbe reçoit un 405 avec l’en-tête Allow.
Gratuit : ces points d’accès ne demandent pas de compte.
- 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.
Exemple de requête
Accepts only GET and describes the request. Référence complète et bouton Send (en anglais).
cURL
curl -X GET "https://api.testingapis.com/api/methods/get"Réponse · 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"
}