[]]], responses: [ new OA\Response( response: 200, description: 'Информация об аккаунте', content: new OA\JsonContent( properties: [ new OA\Property(property: 'username', type: 'string', example: 'PLAYER'), new OA\Property(property: 'balance', type: 'string', example: '1250.00'), ], ), ), new OA\Response( response: 401, description: 'Не авторизован', content: new OA\JsonContent( properties: [ new OA\Property(property: 'message', type: 'string', example: 'Unauthenticated.'), ], ), ), ], )] public function show(Request $request, BalanceService $balances): JsonResponse { $account = $request->user(); return response()->json([ 'username' => (string) $account->username, 'balance' => $balances->balance((int) $account->id), ]); } }