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

Request-Bodies

Parsen des Request-Bodys je nach Content-Type. Typisierte Endpunkte nehmen nur ihren eigenen Content-Type an (sonst 415) und melden, was sie geparst haben; /any erkennt das Format des Inhalts; /large misst Uploads bis 10MB.

Beispiel-Request

Detects a body's real type from its content and compares it with the declared Content-Type. Vollständige Referenz und Send-Button (auf Englisch).

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