Skip to content

API Reference

All GopherForge APIs go through the Traefik gateway with uniform conventions. This page is the hub: general rules + per-module endpoint tables + the machine-readable contract.

General conventions

ConventionDetail
Entry pointAlways via the gateway: http://<gateway>/api/v1/... (local default localhost:8000) — never call service ports directly
AuthAuthorization: Bearer <access_token>; login via POST /api/v1/login (username/password/captcha, optional tenant code), refresh-token rotation
AuthorizationGateway ForwardAuth injects X-Auth-* headers; per-endpoint permission codes enforced by service middleware (bpm validates Bearer JWTs itself)
Response envelopeUniform { "code": 200, "message": "success", "data": ... }; list payloads are { list, total }
Paginationpage / page_size query params (default 1 / 10)

Per-module endpoint tables

Module docs maintain endpoint tables with permission codes, extracted from route registrations: RBAC · Multi-tenancy · Workflow BPM · Code Generator · Audit Logs · Auth & Security.

Machine-readable contract (OpenAPI 3.1)

Coverage (honestly)

The machine-readable contract currently covers the monitor service + common endpoints (first service on the contract toolchain); for other services, the per-module endpoint tables above are authoritative. Contract coverage expands service by service.

MIT Licensed · Open-source Go microservices admin scaffold