fetch('
http://0.0.0.0:8000/register', {
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
userName:'testUserName',
firstName: 'yourValue',
lastName: 'yourOtherValue',
password:'111111'
})
}).then(function (response) {
return response.json();
})
.then(function (data) {
console.log(data)
})