createUser
Requête
Endpoint
[Domain]/academy/api/v1/Dictionary/createUserBody
{
"sex" : "M",
"email" : "[email protected]",
"firstName" : "John",
"lastName" : "Doe",
"password" : "123456",
"dialect" : "wni"
"shikomoriLevel" : 1
}Exemple
const endpoint = "[endpoint]";
const apiKey = "[myAPIKey]";
fetch(endpoint, {
method: "POST",
headers: {
"Authorization": apiKey,
"Content-Type": "application/json",
},
body: JSON.stringify({
"sex" : "M",
"email" : "[email protected]",
"firstName" : "John",
"lastName" : "Doe",
"password" : "123456",
"dialect" : "wni"
"shikomoriLevel" : 1
})
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error("Erreur :", error));
Champ
Type
Description
Valeur
Réponse
Champ
Type
Description
Mis à jour