From 538d259b63ac85c6f7ad8399036ab8704999d927 Mon Sep 17 00:00:00 2001 From: diyaa Date: Wed, 24 Jun 2026 07:30:45 +0200 Subject: [PATCH] Add account schema foundation --- backend/openapi/velody.openapi.json | 68 +++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/backend/openapi/velody.openapi.json b/backend/openapi/velody.openapi.json index b33f509..06bb100 100644 --- a/backend/openapi/velody.openapi.json +++ b/backend/openapi/velody.openapi.json @@ -1,6 +1,32 @@ { "openapi": "3.0.0", "paths": { + "/api/v1/me": { + "get": { + "operationId": "AccountController_getMe_v1", + "parameters": [], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CurrentAccountResponseDto" + } + } + } + } + }, + "security": [ + { + "bearer": [] + } + ], + "tags": [ + "account" + ] + } + }, "/api/v1/assets/{assetId}/download": { "get": { "operationId": "AssetsController_download_v1", @@ -484,6 +510,48 @@ } }, "schemas": { + "CurrentAccountResponseDto": { + "type": "object", + "properties": { + "accountId": { + "type": "string", + "format": "uuid" + }, + "accountKind": { + "type": "string", + "enum": [ + "LEGACY_DEFAULT", + "GUEST", + "REGISTERED" + ], + "example": "LEGACY_DEFAULT" + }, + "accountStatus": { + "type": "string", + "enum": [ + "ACTIVE", + "LOCKED", + "DELETED" + ], + "example": "ACTIVE" + }, + "libraryNamespace": { + "type": "string", + "format": "uuid" + }, + "currentDeviceId": { + "type": "string", + "format": "uuid" + } + }, + "required": [ + "accountId", + "accountKind", + "accountStatus", + "libraryNamespace", + "currentDeviceId" + ] + }, "HealthDependencyDto": { "type": "object", "properties": {