microservice-user

module
v0.0.0-...-2bbbb8e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2021 License: MIT

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]

Directories

Path Synopsis
cmd
pkg
log

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL