Categorygithub.com/Ubivius/microservice-user
module
0.0.0-20211125191013-2bbbb8e986e4
Repository: https://github.com/ubivius/microservice-user.git
Documentation: pkg.go.dev

# README

microservice-user

Microservice to manage users.

User endpoints

GET /users Returns json data about every user.

GET /users/{id} Returns json data about a specific user. id=[string]

GET /health/live Returns a Status OK when live.

GET /health/ready Returns a Status OK when ready or an error when dependencies are not available.

POST /users Add new user with specific data.
Data Params

{
  "id":          "string",
  "username":    "string, required",
  "email":       "string, required",
  "dateofbirth": "string, required",
  "firstname":   "string",
  "lastname":    "string",
  "gender":      "string",
  "address":     "string",
  "bio":         "string"
}

PUT /users Update user data.
Data Params

{
  "id":           "string, required",
  "username":     "string",
  "email":        "string",
  "dateofbirth":  "string",
  "firstname":    "string",
  "lastname":     "string",
  "gender":       "string",
  "address":      "string",
  "bio":          "string",
  "achievements": ["string"]
}

DELETE /users/{id} Delete user. id=[string]

# Packages

No description provided by the author
No description provided by the author