Repository: getmoto/moto (python)

Issue:
Secrets from secretsmanager do not appear in the dashboard
I've been using the [secretsmanager](https://docs.getmoto.org/en/latest/docs/services/secretsmanager.html) mock. When I create a secret, there’s no issue—I can retrieve it using Boto without any errors.
However, in the dashboard at `http://localhost:5000/moto-api/`, the secrets do not appear.
Maybe I'm doing something wrong during the secret creation?

I checked in the `http://localhost:5000/moto-api/data.json` 
`secretsmanager`key only contains an empty array. 
```json 
...
 "secretsmanager": {
    "SecretsManager": [
      
    ]
  },
...
```

Screenshot : 
<img width="1152" alt="Image" src="https://github.com/user-attachments/assets/e47550e7-dfbf-42a7-91ce-3b1951e8586e" />

Code to reproduce : 

```python
import boto3 
from botocore.client import Config
import os 

os.environ["AWS_ACCESS_KEY_ID"] = "testing"
os.environ["AWS_SECRET_ACCESS_KEY"] = "testing"
os.environ["AWS_SECURITY_TOKEN"] = "testing"
os.environ["AWS_SESSION_TOKEN"] = "testing"

secret_manager = boto3.client("secretsmanager",
  region_name="eu-west-3" ,
  endpoint_url="http://localhost:5000",
)

secret_manager.create_secret(
    Name='database-secret',
    Description='string',
    KmsKeyId='string',
    SecretBinary=b'bytes',
    SecretString='string',
)

secret_manager.list_secrets(
    MaxResults=10,
    SortOrder='asc'
)
```

Moto version : `motoserver/moto:5.0.27` docker image


Pull request description:
SecretsManager: display Secrets on dashboard
Closes #8782 

Patch:
diff --git a/moto/secretsmanager/models.py b/moto/secretsmanager/models.py
index 5ff91af0c..4e6ea5093 100644
--- a/moto/secretsmanager/models.py
+++ b/moto/secretsmanager/models.py
@@ -72,12 +72,7 @@ def _matches(
     return is_match
 
 
-class SecretsManager(BaseModel):
-    def __init__(self, region_name: str):
-        self.region = region_name
-
-
-class FakeSecret:
+class FakeSecret(BaseModel):
     def __init__(
         self,
         account_id: str,


Test patch:
diff --git a/tests/test_secretsmanager/test_server.py b/tests/test_secretsmanager/test_server.py
index f553e9fb4..95ed6c8ac 100644
--- a/tests/test_secretsmanager/test_server.py
+++ b/tests/test_secretsmanager/test_server.py
@@ -3,6 +3,7 @@ import unittest
 
 import boto3
 import pytest
+import requests
 
 import moto.server as server
 from moto import mock_aws, settings
@@ -1024,3 +1025,20 @@ def test_batch_get_secret_value_with_filters():
 
     json_data = json.loads(batch_get_secret_values.data.decode("utf-8"))
     assert len(json_data["SecretValues"]) == len(matched) == 2
+
+
+@mock_aws
+def test_data_api() -> None:
+    base_url = (
+        "http://localhost:5000"
+        if settings.TEST_SERVER_MODE
+        else "http://motoapi.amazonaws.com"
+    )
+    data_url = f"{base_url}/moto-api/data.json"
+    conn = boto3.client("secretsmanager", region_name="us-west-1")
+    conn.create_secret(Name="test-secret")
+    data = requests.post(data_url).json()
+    secrets = data["secretsmanager"]["FakeSecret"]
+    assert len(secrets) == 1
+    secret = secrets[0]
+    assert secret["name"] == "test-secret"