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

Cuerpos de petición

Análisis del cuerpo de la petición según el tipo de contenido. Los endpoints tipados solo aceptan su propio Content-Type (si no, 415) e informan de lo que analizaron; /any detecta el formato del contenido; /large mide subidas de hasta 10MB.

Petición de ejemplo

Detects a body's real type from its content and compares it with the declared Content-Type. Referencia completa y botón Send (en inglés).

cURL
curl -X POST "https://api.testingapis.com/api/bodies/any" \
  -H "Content-Type: application/json" \
  -d '{"hello": "world"}'
Ejecutar en Studio
Respuesta · 200 OK
{
  "method": "POST",
  "declaredContentType": "application/json",
  "detectedType": "application/json",
  "matchesDeclared": true,
  "length": 18,
  "sha256": "5f8f04f6a3a892aaabbddb6cf273894493773960d4a325b105fee46eef4304f1"
}