You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We chose these technologies because together we determined that they were the best for each problem we needed to solve.
We use two databases, the main one is that of postgresql and the secondary one is that of mongodb, we did it this way because the info that we keep in the non-relational database, we did not need it to have a relationship with the data that we already had storing in relational database.
ERD
Endpoints
Users
Get all users
GET /api/user
Parameter
Type
Description
Headers: Authorization
Bearer {token}
Requerido Token del usuario debe enviarse por headers
Get one user by id
GET /api/user/${id}
Parameter
Type
Description
Headers: Authorization
Bearer ${token}
Requerido Token del usuario debe enviarse por headers
id
string
Requerido. Id del usuario a consultar
Sign up
POST /api/user
Parameter
Type
Description
name
string
Requerido. user's name
phone_number
number
Requerido. user's phone number
country_id
string
Requerido. country where the user lives
payment_method_id
string
Requerido. user's payment method
password
string
Requerido. user's password
role_id
string
Requerido. user's role id
email
string
Requerido. user's email
Update a user
PUT /api/user
Parameter
Type
Description
Headers: Authorization
Bearer {token}
Requerido Token del usuario debe enviarse por headers