Examples
This page shows you the code-snippet for the various languages.
cURL
curl --location 'http://thefurniturebros.com/auth/register' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "John Dane",
"email":"[email protected]",
"password":"123456",
"admin": false
}'JavaScript
const myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
const raw = JSON.stringify({
"name": "John Dane",
"email": "[email protected]",
"password": "123456",
"admin": false
});
const requestOptions = {
method: "POST",
headers: myHeaders,
body: raw,
redirect: "follow"
};
fetch("http://thefurniturebros.com/auth/register", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));Python
Java
Last updated