Skip to content

iHector1/userApiDocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

User API

this is an api of users about school, this proyect was created with docker, mysql and nodejs

API Reference

Get all users

  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 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

  }
}

Deployment

To deploy this project run

  docker-compose up -d --build

Authors

Logo

About

this is an api of users about school, this proyect was created with docker, mysql and nodejs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published