{"openapi":"3.1.0","info":{"title":"OpenAPI definition","version":"v0"},"servers":[{"url":"http://api.buildmap.ru","description":"Generated server url"}],"paths":{"/api/user/{id}":{"get":{"tags":["user-controller"],"operationId":"getById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserDto"}}}}}},"put":{"tags":["user-controller"],"operationId":"update","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserSaveDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserDto"}}}}}},"delete":{"tags":["user-controller"],"operationId":"delete","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/User"}}}}}}},"/api/mapping-area/{id}":{"get":{"tags":["mapping-area-controller"],"operationId":"getById_1","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/MappingAreaDto"}}}}}},"put":{"tags":["mapping-area-controller"],"operationId":"update_1","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MappingAreaUpdateDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/MappingAreaDto"}}}}}},"delete":{"tags":["mapping-area-controller"],"operationId":"safeDelete","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"}}}},"/api/fulcrum/{fulcrumId}":{"get":{"tags":["fulcrum-controller"],"operationId":"getById_2","parameters":[{"name":"fulcrumId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/FulcrumDto"}}}}}},"put":{"tags":["fulcrum-controller"],"operationId":"update_2","parameters":[{"name":"fulcrumId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulcrumSaveDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/FulcrumDto"}}}}}},"delete":{"tags":["fulcrum-controller"],"operationId":"safeDelete_1","parameters":[{"name":"fulcrumId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"}}}},"/api/floor/{floorId}":{"get":{"tags":["floor-controller"],"operationId":"getById_3","parameters":[{"name":"floorId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/FloorDto"}}}}}},"put":{"tags":["floor-controller"],"operationId":"update_3","parameters":[{"name":"floorId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FloorUpdateDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/FloorDto"}}}}}},"delete":{"tags":["floor-controller"],"operationId":"safeDelete_2","parameters":[{"name":"floorId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"}}}},"/api/user":{"get":{"tags":["user-controller"],"operationId":"getAll","parameters":[{"name":"deleted","in":"query","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserDto"}}}}}}},"post":{"tags":["user-controller"],"operationId":"create","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserSaveDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserDto"}}}}}}},"/api/navigation/path":{"post":{"tags":["navigation-controller"],"operationId":"findShortestPath","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteRequestDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/RouteDto"}}}}}}},"/api/mapping-area":{"get":{"tags":["mapping-area-controller"],"operationId":"getAll_1","parameters":[{"name":"deleted","in":"query","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MappingAreaDto"}}}}}}},"post":{"tags":["mapping-area-controller"],"operationId":"create_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MappingAreaSaveDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/MappingAreaDto"}}}}}}},"/api/fulcrum":{"post":{"tags":["fulcrum-controller"],"operationId":"create_2","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulcrumSaveDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/FulcrumDto"}}}}}}},"/api/fulcrum/{fulcrumId}/connection":{"post":{"tags":["fulcrum-controller"],"operationId":"addConnection","parameters":[{"name":"fulcrumId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulcrumConnectionSaveDto"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/floor":{"post":{"tags":["floor-controller"],"operationId":"create_3","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FloorSaveDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/FloorDto"}}}}}}},"/api/auth/test-login":{"post":{"tags":["auth-controller"],"operationId":"testLogin","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestLoginRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AuthResponseDto"}}}}}}},"/api/auth/telegram":{"post":{"tags":["auth-controller"],"operationId":"telegramAuth","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TelegramAuthDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AuthResponseDto"}}}}}}},"/api/auth/register":{"post":{"tags":["auth-controller"],"operationId":"register","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterRequestDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AuthResponseDto"}}}}}}},"/api/auth/logout":{"post":{"tags":["auth-controller"],"operationId":"logout","responses":{"200":{"description":"OK"}}}},"/api/auth/login":{"post":{"tags":["auth-controller"],"operationId":"passwordLogin","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordLoginRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AuthResponseDto"}}}}}}},"/api/auth/dev-login":{"post":{"tags":["auth-controller"],"operationId":"devLogin","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevLoginRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AuthResponseDto"}}}}}}},"/api/user/{id}/unblock":{"patch":{"tags":["user-controller"],"operationId":"unblock","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserDto"}}}}}}},"/api/user/{id}/block":{"patch":{"tags":["user-controller"],"operationId":"block","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserDto"}}}}}}},"/api/user/admin-list":{"get":{"tags":["user-controller"],"operationId":"getAdminList","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserAdminListDto"}}}}}}}},"/api/navigation/debug/graph/{areaId}":{"get":{"tags":["navigation-controller"],"operationId":"debugGraph","parameters":[{"name":"areaId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/mapping-area/user/{userId}":{"get":{"tags":["mapping-area-controller"],"operationId":"getByUser","parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"deleted","in":"query","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MappingAreaDto"}}}}}}}},"/api/fulcrum/qr-availability":{"get":{"tags":["fulcrum-controller"],"operationId":"getQrAvailability","parameters":[{"name":"areaIds","in":"query","required":true,"schema":{"type":"array","items":{"type":"integer","format":"int64"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"type":"integer","format":"int64"}}}}}}}},"/api/fulcrum/floor/{floorId}":{"get":{"tags":["fulcrum-controller"],"operationId":"getByFloorId","parameters":[{"name":"floorId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"deleted","in":"query","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FulcrumDto"}}}}}}}},"/api/fulcrum/area/{areaId}":{"get":{"tags":["fulcrum-controller"],"operationId":"getByAreaId","parameters":[{"name":"areaId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"deleted","in":"query","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FulcrumDto"}}}}}}}},"/api/fulcrum/area/{areaId}/qr.pdf":{"get":{"tags":["fulcrum-controller"],"operationId":"getAreaQrPdf","parameters":[{"name":"areaId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"sizeMm","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":140}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string","format":"byte"}}}}}}},"/api/floor/fulcrum/{fulcrumId}":{"get":{"tags":["floor-controller"],"operationId":"getByFulcrumId","parameters":[{"name":"fulcrumId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/FloorDto"}}}}}}},"/api/floor/area/{areaId}":{"get":{"tags":["floor-controller"],"operationId":"getByAreaId_1","parameters":[{"name":"areaId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"deleted","in":"query","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FloorDto"}}}}}}}},"/api/dashboard/me":{"get":{"tags":["dashboard-controller"],"operationId":"getCurrentUserStats","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserDashboardStatsDto"}}}}}}},"/api/dashboard/admin":{"get":{"tags":["dashboard-controller"],"operationId":"getAdminStats","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AdminDashboardStatsDto"}}}}}}},"/api/auth/test-connection":{"get":{"tags":["auth-controller"],"operationId":"testConnection","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/auth/me":{"get":{"tags":["auth-controller"],"operationId":"getCurrentUser","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserDto"}}}}}}},"/api/user/force/{id}":{"delete":{"tags":["user-controller"],"operationId":"forceDelete","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/User"}}}}}}},"/api/mapping-area/force/{id}":{"delete":{"tags":["mapping-area-controller"],"operationId":"forceDelete_1","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"}}}},"/api/fulcrum/{fulcrumId}/connection/{connectedFulcrumId}":{"delete":{"tags":["fulcrum-controller"],"operationId":"removeConnection","parameters":[{"name":"fulcrumId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"connectedFulcrumId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"}}}},"/api/fulcrum/force/{fulcrumId}":{"delete":{"tags":["fulcrum-controller"],"operationId":"forceDelete_2","parameters":[{"name":"fulcrumId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"}}}},"/api/floor/force/{floorId}":{"delete":{"tags":["floor-controller"],"operationId":"forceDelete_3","parameters":[{"name":"floorId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"}}}}},"components":{"schemas":{"UserSaveDto":{"type":"object","properties":{"name":{"type":"string","maxLength":30,"minLength":0},"telegramId":{"type":"string","maxLength":30,"minLength":0},"login":{"type":"string","maxLength":30,"minLength":0},"password":{"type":"string","maxLength":72,"minLength":0},"role":{"type":"string","enum":["ADMIN","USER"]}},"required":["name"]},"UserDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"telegramId":{"type":"string"},"login":{"type":"string"},"deleted":{"type":"boolean"},"blocked":{"type":"boolean"},"role":{"type":"string","enum":["ADMIN","USER"]}}},"MappingAreaUpdateDto":{"type":"object","properties":{"name":{"type":"string","maxLength":100,"minLength":0},"description":{"type":"string","maxLength":500,"minLength":0}},"required":["name"]},"MappingAreaDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"description":{"type":"string"},"deleted":{"type":"boolean"},"userIds":{"type":"array","items":{"type":"integer","format":"int64"}}}},"FulcrumSaveDto":{"type":"object","properties":{"name":{"type":"string","maxLength":50,"minLength":0},"description":{"type":"string","maxLength":200,"minLength":0},"x":{"type":"number","format":"double","maximum":1.0,"minimum":0.0},"y":{"type":"number","format":"double","maximum":1.0,"minimum":0.0},"type":{"type":"string","enum":["WAYPOINT","ROOM","STAIRS","ELEVATOR","ENTRANCE","HALL","RESTROOM","KITCHEN","RECEPTION","EMERGENCY_EXIT","LANDMARK"]},"facingDirection":{"type":"string","enum":["UP","RIGHT","DOWN","LEFT"]},"hasQr":{"type":"boolean"},"floorId":{"type":"integer","format":"int64"}},"required":["floorId","name","type","x","y"]},"FulcrumConnectionDto":{"type":"object","properties":{"connectedFulcrumId":{"type":"integer","format":"int64"},"distanceMeters":{"type":"number","format":"double"},"difficultyFactor":{"type":"number","format":"double"}}},"FulcrumDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"description":{"type":"string"},"x":{"type":"number","format":"double"},"y":{"type":"number","format":"double"},"type":{"type":"string","enum":["WAYPOINT","ROOM","STAIRS","ELEVATOR","ENTRANCE","HALL","RESTROOM","KITCHEN","RECEPTION","EMERGENCY_EXIT","LANDMARK"]},"facingDirection":{"type":"string","enum":["UP","RIGHT","DOWN","LEFT"]},"hasQr":{"type":"boolean"},"qrCodeId":{"type":"string"},"mappingAreaId":{"type":"integer","format":"int64"},"floorId":{"type":"integer","format":"int64"},"deleted":{"type":"boolean"},"connections":{"type":"array","items":{"$ref":"#/components/schemas/FulcrumConnectionDto"}}}},"FloorUpdateDto":{"type":"object","properties":{"name":{"type":"string","maxLength":50,"minLength":0},"level":{"type":"integer","format":"int32"},"description":{"type":"string","maxLength":200,"minLength":0},"svgPlan":{"type":"string"}}},"FloorDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"level":{"type":"integer","format":"int32"},"description":{"type":"string"},"svgPlan":{"type":"string"},"mappingAreaId":{"type":"integer","format":"int64"},"deleted":{"type":"boolean"}}},"RouteRequestDto":{"type":"object","properties":{"startFulcrumId":{"type":"integer","format":"int64"},"endFulcrumId":{"type":"integer","format":"int64"}},"required":["endFulcrumId","startFulcrumId"]},"RouteDto":{"type":"object","properties":{"path":{"type":"array","items":{"$ref":"#/components/schemas/FulcrumDto"}},"totalDistanceMeters":{"type":"number","format":"double"},"totalCost":{"type":"number","format":"double"},"startFulcrumId":{"type":"integer","format":"int64"},"endFulcrumId":{"type":"integer","format":"int64"},"steps":{"type":"array","items":{"$ref":"#/components/schemas/RouteStepDto"}}}},"RouteStepDto":{"type":"object","properties":{"type":{"type":"string","enum":["TURN_LEFT","TURN_RIGHT","U_TURN","GO_FORWARD","CHANGE_FLOOR_UP","CHANGE_FLOOR_DOWN","ARRIVE"]},"text":{"type":"string"},"distanceMeters":{"type":"number","format":"double"},"fromFulcrumId":{"type":"integer","format":"int64"},"toFulcrumId":{"type":"integer","format":"int64"},"floorId":{"type":"integer","format":"int64"}}},"MappingAreaSaveDto":{"type":"object","properties":{"name":{"type":"string","maxLength":100,"minLength":0},"description":{"type":"string","maxLength":500,"minLength":0},"userIds":{"type":"array","items":{"type":"integer","format":"int64"}}},"required":["name","userIds"]},"FulcrumConnectionSaveDto":{"type":"object","properties":{"connectedFulcrumId":{"type":"integer","format":"int64"},"distanceMeters":{"type":"number","format":"double","minimum":0.1},"difficultyFactor":{"type":"number","format":"double","minimum":1.0}},"required":["connectedFulcrumId","difficultyFactor","distanceMeters"]},"FloorSaveDto":{"type":"object","properties":{"name":{"type":"string","maxLength":50,"minLength":0},"level":{"type":"integer","format":"int32"},"description":{"type":"string","maxLength":200,"minLength":0},"svgPlan":{"type":"string"},"mappingAreaId":{"type":"integer","format":"int64"}},"required":["level","mappingAreaId","name"]},"TestLoginRequest":{"type":"object","properties":{"userId":{"type":"integer","format":"int64"},"name":{"type":"string"},"secret":{"type":"string"}}},"AuthResponseDto":{"type":"object","properties":{"token":{"type":"string"},"user":{"$ref":"#/components/schemas/UserDto"}}},"TelegramAuthDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"first_name":{"type":"string"},"last_name":{"type":"string"},"username":{"type":"string"},"photo_url":{"type":"string"},"auth_date":{"type":"integer","format":"int64"},"hash":{"type":"string"}}},"RegisterRequestDto":{"type":"object","properties":{"name":{"type":"string","maxLength":30,"minLength":0},"login":{"type":"string","maxLength":30,"minLength":0},"password":{"type":"string","maxLength":72,"minLength":6}},"required":["login","name","password"]},"PasswordLoginRequest":{"type":"object","properties":{"login":{"type":"string"},"password":{"type":"string"}}},"DevLoginRequest":{"type":"object","properties":{"userId":{"type":"integer","format":"int64"},"telegramId":{"type":"string"},"secret":{"type":"string"},"name":{"type":"string"}}},"UserAdminListDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"telegramId":{"type":"string"},"login":{"type":"string"},"role":{"type":"string","enum":["ADMIN","USER"]},"deleted":{"type":"boolean"},"blocked":{"type":"boolean"},"areasCount":{"type":"integer","format":"int64"}}},"UserDashboardStatsDto":{"type":"object","properties":{"myActiveAreas":{"type":"integer","format":"int64"},"myActiveFloors":{"type":"integer","format":"int64"},"myActiveFulcrums":{"type":"integer","format":"int64"}}},"AdminDashboardStatsDto":{"type":"object","properties":{"activeUsers":{"type":"integer","format":"int64"},"blockedUsers":{"type":"integer","format":"int64"},"deletedUsers":{"type":"integer","format":"int64"},"activeAdmins":{"type":"integer","format":"int64"},"activeAreas":{"type":"integer","format":"int64"},"activeFloors":{"type":"integer","format":"int64"},"activeFulcrums":{"type":"integer","format":"int64"}}},"Floor":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string","maxLength":50,"minLength":0},"level":{"type":"integer","format":"int32"},"description":{"type":"string","maxLength":200,"minLength":0},"svgPlan":{"type":"string"},"mappingArea":{"$ref":"#/components/schemas/MappingArea"},"fulcrums":{"type":"array","items":{"$ref":"#/components/schemas/Fulcrum"}},"deleted":{"type":"boolean"}},"required":["level","name"]},"Fulcrum":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string","maxLength":50,"minLength":0},"description":{"type":"string","maxLength":200,"minLength":0},"x":{"type":"number","format":"double"},"y":{"type":"number","format":"double"},"type":{"type":"string","enum":["WAYPOINT","ROOM","STAIRS","ELEVATOR","ENTRANCE","HALL","RESTROOM","KITCHEN","RECEPTION","EMERGENCY_EXIT","LANDMARK"]},"facingDirection":{"type":"string","enum":["UP","RIGHT","DOWN","LEFT"]},"hasQr":{"type":"boolean"},"qrCodeId":{"type":"string"},"floor":{"$ref":"#/components/schemas/Floor"},"connections":{"type":"array","items":{"$ref":"#/components/schemas/FulcrumConnection"}},"deleted":{"type":"boolean"},"level":{"type":"integer","format":"int32"},"mappingArea":{"$ref":"#/components/schemas/MappingArea"}},"required":["name"]},"FulcrumConnection":{"type":"object","properties":{"connectedFulcrum":{"$ref":"#/components/schemas/Fulcrum"},"distanceMeters":{"type":"number","format":"double"},"difficultyFactor":{"type":"number","format":"double"},"cost":{"type":"number","format":"double"}}},"MappingArea":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string","maxLength":100,"minLength":0},"description":{"type":"string","maxLength":500,"minLength":0},"users":{"type":"array","items":{"$ref":"#/components/schemas/User"}},"floors":{"type":"array","items":{"$ref":"#/components/schemas/Floor"}},"deleted":{"type":"boolean"}},"required":["name"]},"User":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string","maxLength":30,"minLength":0},"telegramId":{"type":"string","maxLength":30,"minLength":0},"login":{"type":"string","maxLength":30,"minLength":0},"passwordHash":{"type":"string"},"role":{"type":"string","enum":["ADMIN","USER"]},"mappingAreas":{"type":"array","items":{"$ref":"#/components/schemas/MappingArea"}},"deleted":{"type":"boolean"},"blocked":{"type":"boolean"}},"required":["name"]}}}}