This method allows the creation of a new user.
POST /CreateUser
user
(request body): An object representing the user information to be created.
201 Created
: The user was created successfully.409 Conflict
: The user already exists.500 Internal Server Error
: Server internal error.
Example request:
{
"UserName": "exampleUser",
"Password": "examplePassword",
"Email": "user@example.com"
}
This method returns the list of all registered users.
GET /getAllUser
200 OK
: The list of users was successfully retrieved.500 Internal Server Error
: Server internal error.
This method authenticates an existing user.
POST /Auth
user
(request body): An object representing the user information to be authenticated.
200 OK
: Authentication was successful.400 Bad Request
: User not found.500 Internal Server Error
: Server internal error.
Example request:
{
"UserName": "exampleUser",
"Password": "examplePassword"
}
Este método permite a criação de um novo usuário.
POST /CreateUser
user
(corpo da solicitação): Um objeto representando as informações do usuário a ser criado.
201 Created
: O usuário foi criado com sucesso.409 Conflict
: O usuário já existe.500 Internal Server Error
: Erro interno do servidor.
Exemplo de solicitação:
{
"UserName": "exampleUser",
"Password": "examplePassword",
"Email": "user@example.com"
}
Este método retorna a lista de todos os usuários cadastrados.
GET /getAllUser
200 OK
: A lista de usuários foi recuperada com sucesso.500 Internal Server Error
: Erro interno do servidor.
Este método autentica um usuário existente.
POST /Auth
user
(corpo da solicitação): Um objeto representando as informações do usuário a ser autenticado.
200 OK
: A autenticação foi bem-sucedida.400 Bad Request
: O usuário não foi encontrado.500 Internal Server Error
: Erro interno do servidor.
Exemplo de solicitação:
{
"UserName": "exampleUser",
"Password": "examplePassword"
}