Costruttore richieste HTTP
Costruisci visualmente le richieste agli endpoint e genera codice JavaScript Fetch, senza passare da cURL.
Payload degli header
Dati corpo richiesta (Raw)
Wrapper nativo 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));