The dashboard is preloaded with your requested test user.
Use this client in your Next.js app:
const API_BASE = process.env.NEXT_PUBLIC_USER_API_BASE ?? "http://localhost:8080";
export async function getUserByAuthId(authUserId: string) {
const res = await fetch(`${API_BASE}/api/v1/users/auth/${encodeURIComponent(authUserId)}`, {
headers: { "Accept": "application/json" },
cache: "no-store",
});
if (!res.ok) throw new Error(`User API failed: ${res.status}`);
const json = await res.json();
return json.data;
}
Set NEXT_PUBLIC_USER_API_BASE and allow your frontend origin via CORS_ALLOWED_ORIGINS.
GET/healthhealth
GET/swagger/index.htmlswagger UI
GET/api/v1/users/auth/{authUserId}get user
GET/api/v1/user-profile/{authUserId}aggregate profile
GET/api/v1/diabetes-profile/snapshot?authUserId={authUserId}therapy snapshot
GET/api/v1/usage/limits/{authUserId}usage limits
POST/api/v1/userscreate user
PATCH/api/v1/users/{userId}partial update
PUT/api/v1/usage/limits/{authUserId}set limits