Park Bank API 0.1

API Monitoring Dashboard

API Endpoints

Health Check

GET
/health
Public

Basic health check endpoint that returns a simple "ok" status. Used for load balancer health checks and basic service monitoring.

Payload: None
ok

Metrics

GET
/metrics
Public

Comprehensive metrics endpoint returning detailed JSON data about system performance, database connectivity, memory usage, and runtime statistics.

Payload: None
{ "uptime": "1h23m45s", "db_latency_ms": 12, "health_latency_ms": 0.5, "cpu_count": 8, "goroutines": 15, "max_procs": 8, "memory_alloc_mb": 45.2, "memory_total_mb": 120.5, "memory_sys_mb": 55.8, "gc_count": 3, "go_version": "go1.25.3" }

User Registration

POST
/register
Public

User registration endpoint that creates a new user account. Requires JSON payload with username and password fields. Passwords are securely hashed before storage.

Payload (JSON):
{
  "username": "example_user",
  "password": "secure_password123"
}
User registered successfully

User Login

POST
/login
Public

Authenticates a user and returns a JWE token for subsequent authenticated requests. The token is AES-encrypted and contains user info with a 24-hour expiration.

Payload (JSON):
{
  "username": "example_user",
  "password": "secure_password123"
}
{ "token": "eyJhbGciOiJBRVNFTC1HQ00iLCJlbmMiOiJBMjU2R0NNIiwidmYiOiJBUkQxMjM0NTY3ODkwIiwiY3QiOiJBMTIzNDU2Nzg5MCJ9.eyJ1c2VyX2lkIjoxLCJ1c2VybmFtZSI6ImV4YW1wbGVfdXNlciIsInRva2VuIjoiZXhhbXBsZV90b2tlbl8xMjM0NTY3ODkiLCJleHBpcmF0aW9uIjoxNzA0OTY3NjAwfQ.abc123def456..." }

User Profile

GET
/profile
Auth Required

Returns the authenticated user's profile information including user ID and balance. Requires a valid JWE token in the Authorization header.

Headers:
Authorization: Bearer <jwe_token>
{ "id": 1, "balance": 100.50 }

Transfer Funds

POST
/transfer
Auth Required

Transfers funds from the authenticated user's account to another user. Requires a valid JWE token and a JSON payload specifying the recipient and amount.

Headers:
Authorization: Bearer <jwe_token>
Payload (JSON):
{
  "recipient_id": 2,
  "amount": 50.00
}
Transfer successful

System Metrics

Live API health, runtime telemetry, and memory details for monitoring performance.

Server Uptime

--:--:--

Service Status

Checking...

Database Latency

-- ms

Health API Latency

-- ms
Round-trip time for /health

CPU Cores

--

Goroutines

--

Max Procs

--

Memory Usage

--

Garbage Collections

--

Go Version

--

Last Updated

--
Most recent refresh time