Add account schema foundation
This commit is contained in:
parent
fa794d23ad
commit
538d259b63
@ -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": {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user