Body request

Parsing body request per content type. Endpoint bertipe hanya menerima Content-Type-nya sendiri (selain itu 415) dan melaporkan hasil parsing-nya; /any mengenali format isinya; /large mengukur unggahan hingga 10MB.

Akun Anda membuka endpoint ini. Pakai Try it di halaman tiap endpoint untuk mengirim request.

Endpoint ini butuh akun gratis. Buat akun atau masuk untuk melihat detailnya dan mencobanya di sini.

Contoh request

Detects a body's real type from its content and compares it with the declared Content-Type. Referensi lengkap dan tombol Send (dalam bahasa Inggris).

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

Masuk untuk melihat detailnya

Parameter, contoh request dan response, serta panel Try it langsung untuk endpoint ini khusus anggota yang sudah masuk. Akun gratis dan dibuat dalam beberapa detik.