moegoapis

API Versioning Implementation

Current Version: 1.1.1

Version Storage

Version is stored in multiple locations:

# config/config.yaml
api:
  version: "1.1.1"
// internal/consts/version.go (to be created)
const APIVersion = "1.1.1"

Version Discovery

Response Header

X-API-Version: 1.1.1

Version Endpoint

GET /v1/version

Response:
{
  "version": "1.1.1",
  "deployed_at": "2026-02-03T10:00:00Z"
}

Implementation TODO


For changelog and version rules, see CHANGELOG.md