game-systems-api

module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: MIT

README

SweetRPG Game Systems API

CI License Issues PRs Dependabot

HTTP microservice that owns the platform-wide catalog of game systems (ruleset/edition, name, publisher reference, metadata). A Gin-based Go service, matching catalog-api's conventions, backed by its own MongoDB database.

catalog-api resolves a Volume's system references against this service rather than maintaining its own copy - see sweetrpg/platform's openspec/changes/game-systems-service for the full design.

Run locally

go run ./cmd/game-systems-api

Needs a MongoDB instance reachable per mongodb.go's DB_* environment variables (DB_URI, or DB_HOST/DB_SCHEME/DB_USER/DB_PW/DB_NAME/DB_PORT/DB_OPTS).

Documentation

Package documentation: pkg.go.dev/github.com/sweetrpg/game-systems-api.

Contributing

See CONTRIBUTING.md for the development workflow.

Directories

Path Synopsis
Package authz calls auth-api's POST /authz/check to verify a caller's bearer token and resolve their roles, and provides Gin middleware that gates a route on holding one of a set of allowed roles.
Package authz calls auth-api's POST /authz/check to verify a caller's bearer token and resolve their roles, and provides Gin middleware that gates a route on holding one of a set of allowed roles.
cmd
internal

Jump to

Keyboard shortcuts

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