diff --git a/api-reference/openapi.json b/api-reference/openapi.json index 9a0c687..98e2414 100644 --- a/api-reference/openapi.json +++ b/api-reference/openapi.json @@ -1071,6 +1071,32 @@ "security": [{ "bearerAuth": [] }], "responses": { "200": { "description": "OK" } } } + }, + "/api/user/check-username": { + "get": { + "tags": ["User", "Auth and onboarding"], + "summary": "Check username availability", + "description": "Returns whether a given username (handle) is available. Case-insensitive check.", + "parameters": [ + { "name": "username", "in": "query", "required": true, "schema": { "type": "string" }, "description": "The username to check." } + ], + "security": [], + "responses": { + "200": { "description": "{ success, data: { available } }" }, + "400": { "description": "Username is required" } + } + } + }, + "/api/v1/product_entitlement_mapping": { + "get": { + "tags": ["Products", "Commerce and purchases"], + "summary": "Product entitlement mapping", + "description": "Returns the mapping of RevenueCat product IDs to entitlements and D-Sports Cash tiers. Used by the mobile app and RevenueCat integration.", + "security": [], + "responses": { + "200": { "description": "{ success, data: { mappings } }" } + } + } } }, "components": { diff --git a/repositories/d-sports-api.mdx b/repositories/d-sports-api.mdx index 4e11c71..8408a65 100644 --- a/repositories/d-sports-api.mdx +++ b/repositories/d-sports-api.mdx @@ -16,7 +16,7 @@ icon: "server" | Category | Technology | | ---------- | ----------------------------- | | Framework | Next.js 16, React 19 | -| Database | PostgreSQL, Prisma 6.8 | +| Database | PostgreSQL (Supabase), Prisma 6.8 | | Auth | Clerk 6.x | | Styling | Tailwind CSS 4, Radix UI, shadcn/ui | | Web3 | Thirdweb, Viem, Wagmi |