Test GET, POST, PUT, DELETE endpoints with headers and body
{ "status": "Ready to send request" }
{ "content-type": "application/json" }
curl -X POST "https://jsonplaceholder.typicode.com/posts" \ -H "Content-Type: application/json" \ -H "Accept: application/json" \ -d "{ \"title\": \"Architecting Enterprise Tools\", \"body\": \"Modern Next.js 16 utilities with Vitest testing\", \"userId\": 1 }"
const response = await fetch("https://jsonplaceholder.typicode.com/posts", { method: "POST", headers: { "Content-Type": "application/json", "Accept": "application/json" }, body: "{\n \"title\": \"Architecting Enterprise Tools\",\n \"body\": \"Modern Next.js 16 utilities with Vitest testing\",\n \"userId\": 1\n}" }); const data = await response.json(); console.log(data);