HTTP रिक्वेस्ट बिल्डर
बैकएंड endpoint के लिए रिक्वेस्ट विज़ुअली बनाएँ और JavaScript Fetch कोड जनरेट करें।
हेडर पेलोड
बॉडी रिक्वेस्ट डेटा (रॉ)
नेटिव Fetch() रैपर
fetch("https://api.example.com/v1/auth/login", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer token123",
},
body: JSON.stringify({
"username": "admin",
"password": "supersecurepassword"
}),
})
.then((response) => response.json())
.then((data) => console.log(data));