this is an api of users about school, this proyect was created with docker, mysql and nodejs
GET /users
Parameter | Type | Description |
---|---|---|
none |
none |
This will return all user of the database and their information, and some information about the resuult |
{
timeStamp": timeStamp,
"statusCode": status_code,
"httpStatus": http_status,
"message": message,
"data": {
"users": [
{
"id": id_user,
"nombre": name_user,
"apellido": lastName_user,
"edad": age_user,
"carrera": carreer_user,
"semestre": semester_user,
"promedio": collegeAverage_user
}
]
}
}
GET /users/${id}
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Id of item to fetch |
{
timeStamp": timeStamp,
"statusCode": status_code,
"httpStatus": http_status,
"message": message,
"data": {
"id": id_user,
"nombre": name_user,
"apellido": lastName_user,
"edad": age_user,
"carrera": carreer_user,
"semestre": semester_user,
"promedio": collegeAverage_user
}
}
To deploy this project run
docker-compose up -d --build