microservice-achievements

module
v0.0.0-...-2fb4a12 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-achievements

Achievement microservice for our online game framework.

Achievement endpoints

GET /achievements Returns json data about every achievement.

GET /achievements/{id} Returns json data about a specific achievement. 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 /achievements Add new achievement with specific data.
Data Params

{
  "name":        "string, required",
  "condition":   "string, required",
  "description": "string",
  "sprite_id":   "string",
}

PUT /achievements Update achievement data.
Data Params

{
  "id":          "string, required",
  "name":        "string",
  "condition":   "string",
  "description": "string",
  "sprite_id":   "string",
}

DELETE /achievements/{id} Delete an achievement. 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