Development of an apirest for the fullstack technical test of the Universidad Del Magdalena.
First we need to have Docker installed on our machines.
docker compose -f docker-compose-dev.yml up
Or deamon mode:
docker compose -f docker-compose-dev.yml up -d
docker compose up
You can test the api in the localhost:3000
POST localhost:3000/auth/register
Parameter | Type | Description |
---|---|---|
name |
string |
Required. |
dni |
string |
Required. |
phone |
string |
Required. |
password |
string |
Required. |
address |
string |
Required. |
{
"message": string,
"id": string, /* uuid auto-generated */
}
POST localhost:3000/auth/login
Parameter | Type | Description |
---|---|---|
phone |
string |
Required. |
password |
string |
Required. |
{
"message" : string,
"token": string, /* JWT Token */
}
GET localhost:3000/auth/logout
{
"message" : string,
}
GET localhost:3000/users
{
"user": {
"uuid": string,
"name": string,
"rol": string
},
"message": string
}