fetch('https://reqres.in/api/users', { // Endpoint is a test API method: "POST", // or "PUT" headers: { 'Content-type': 'application/json' }, body: JSON.stringify( { name: "Captain Anonymous"} ) });
fetch('https://reqres.in/api/users', { // Endpoint is a test API method: "POST", // or "PUT" headers: { 'Content-type': 'application/json' }, body: JSON.stringify( { name: "Captain Anonymous"} ) });