Download OpenAPI specification:Download
This microservice is used to manage all the informations and processes about the user, like registration, login and changing informations
Register an user, with the given informations, in the system
Data needed for register an user
string | |
password | string |
nome | string |
cognome | string |
istituto | object |
role | object |
classe | string |
{ "email": "string", "password": "string", "nome": "string", "cognome": "string" }
{ "email": "string", "password": "string", "nome": "string", "cognome": "string", "role": 0 }
Validate user credentials passed for logging in the system
Data needed for validate an user
string | |
password | string |
nome | string |
cognome | string |
istituto | object |
role | object |
classe | string |
{ "email": "string", "password": "string" }
{ "message": "Confirmed login.", "user": { "email": "string", "password": "string", "nome": "string", "cognome": "string", "istituto": { "ID": "integer", "IstitutoNome": "string", "IstitutoCitta": "string" }, "role": "integer", "classe": "string" } }
Remove a given user from the system
Data needed for remove an user
string | |
password | string |
nome | string |
cognome | string |
istituto | object |
role | object |
classe | string |
{ "email": "string" }
{ "message": "User deleted." }
Verify if an user exists, passing his email
email required | string Email of the user |
{ "user": { "email": "string", "password": "string", "nome": "string", "cognome": "string", "istituto": { "ID": "integer", "IstitutoNome": "string", "IstitutoCitta": "string" }, "role": "integer", "classe": "string" } }
Change the nome of a given user, passed by email
string | |
password | string |
nome | string |
cognome | string |
istituto | object |
role | object |
classe | string |
{ "email": "string", "name": "string" }
{ "message": "Confirmed change to name.", "user": { "email": "string", "password": "string", "nome": "string", "cognome": "string", "istituto": { "ID": "integer", "IstitutoNome": "string", "IstitutoCitta": "string" }, "role": "integer", "classe": "string" } }
Change the cognome of a given user, passed by email
string | |
password | string |
nome | string |
cognome | string |
istituto | object |
role | object |
classe | string |
{ "email": "string", "cognome": "string" }
{ "message": "Confirmed change to cognome.", "user": { "email": "string", "password": "string", "nome": "string", "cognome": "string", "istituto": { "ID": "integer", "IstitutoNome": "string", "IstitutoCitta": "string" }, "role": "integer", "classe": "string" } }
Change the email of a given user, passed by the old email
nuova_Email | string |
user | object |
{ "new_Email": "string", "user": { "email": "string" } }
{ "message": "Confirmed change to email.", "user": { "email": "string", "password": "string", "nome": "string", "cognome": "string", "istituto": { "ID": "integer", "IstitutoNome": "string", "IstitutoCitta": "string" }, "role": "integer", "classe": "string" } }
Change the password of a given user, passed by the old email
string | |
password | string |
nome | string |
cognome | string |
istituto | object |
role | object |
classe | string |
{ "user": { "email": "string", "password": "string" } }
{ "message": "Confirmed change to password.", "user": { "email": "string", "password": "string", "nome": "string", "cognome": "string", "istituto": { "ID": "integer", "IstitutoNome": "string", "IstitutoCitta": "string" }, "role": "integer", "classe": "string" } }
Change the istituto of a given user, passed by the email
email_esecutore | string |
email_utenteFinale | string |
nuovo_istituto | object |
{ "email_esecutore": "string", "email_utenteFinale": "string", "nuovo_istituto": "object" }
{ "message": "Istituto changed successfully." }
Change the ruolo of a given user, passed by the email
email_esecutore | string |
email_utenteFinale | string |
nuovo_ruolo | object |
{ "email_esecutore": "string", "email_utenteFinale": "string", "nuovo_ruolo": "object" }
{ "message": "Ruolo changed successfully." }
Change the classe of a given user, passed by the email
email_esecutore | string |
email_utenteFinale | string |
nuova_classe | string |
{ "email_esecutore": "string", "email_utenteFinale": "string", "nuova_classe": "string" }
{ "message": "Classe changed successfully." }