microservice-character-data

module
v0.0.0-...-e304373 Latest Latest
Warning

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

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

README

character-data-microservice

Character data microservice for our online game framework.

Character data endpoints

GET /characters Returns json data about every character.

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

GET /characters/user/{user_id} Returns the list of characters of a user. 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 /characters Add new character with specific data.
Data Params

{
  "user_id": "string, required",
  "name":    "string, required",
}

PUT /characters Update character data
Data Params

{
  "id":      "string, required",
  "user_id": "string",
  "name":    "string",
}

DELETE /characters/{id} Delete a character. 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