> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mastermindcms.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DummyBean

> Aufruf öffentlicher Servicemethoden über die REST API: dummyBean

<ResponseField name="beanId" type="string">
  Die Spring-Bean-ID des aufzurufenden Services.

  dummyBean
</ResponseField>

<ResponseField name="scope" type="string" default="PROTOTYPE">
  Bean-Scope. Für Serviceaufrufe wird PROTOTYPE verwendet.
</ResponseField>

<ResponseField name="functionName" type="string">
  Der öffentliche Methodenname des Services, der in der Signatur angegeben ist.
</ResponseField>

<ResponseField name="args" type="object[]">
  Das Argument-Array der Methode. Jedes Argument wird mit dem Index 0, 1 usw. übergeben; der Wert muss dem Java-Parametertyp entsprechen.
</ResponseField>

## Headers

```http theme={null}
POST /api/v1/bean/request
Content-Type: application/json
Lang-Context: de
Site-Context: my-site
Authorization: Bearer <token>
```

Senden Sie `Lang-Context` und `Site-Context` mit jeder Anfrage. Für geschützte Methoden senden Sie das JWT im Header `Authorization` im Format `Bearer <token>`.

**Zugriff:** ADMIN. **Bearer Token:** erforderlich.

* GUEST — nicht angemeldete Benutzer; nur Whitelist-Services sind verfügbar.
* USER — Authentifizierung erforderlich; Methoden mit USER-Prüfung sind verfügbar.
* ADMIN — vollständiger Zugriff auf öffentliche Methoden aller Services.
* Wenn eine Methode intern eine Rolle prüft, kann GUEST null erhalten.

## Methoden

<ResponseField name="getUsers" type="List<Object>">
  | Argument | Typ | Beschreibung                              |
  | -------- | --- | ----------------------------------------- |
  | —        | —   | Diese Methode akzeptiert keine Argumente. |

  ### getUsers

  ```json theme={null}
  {
    "beanId": "dummyBean",
    "scope": "PROTOTYPE",
    "functionName": "getUsers",
    "args": []
  }
  ```
</ResponseField>

<ResponseField name="getDummyUser" type="DummyUser">
  | Argument | Typ | Beschreibung                              |
  | -------- | --- | ----------------------------------------- |
  | —        | —   | Diese Methode akzeptiert keine Argumente. |

  ### getDummyUser

  ```json theme={null}
  {
    "beanId": "dummyBean",
    "scope": "PROTOTYPE",
    "functionName": "getDummyUser",
    "args": []
  }
  ```
</ResponseField>

<ResponseField name="getAddress" type="Map<String, Object>">
  | Argument | Typ | Beschreibung                              |
  | -------- | --- | ----------------------------------------- |
  | —        | —   | Diese Methode akzeptiert keine Argumente. |

  ### getAddress

  ```json theme={null}
  {
    "beanId": "dummyBean",
    "scope": "PROTOTYPE",
    "functionName": "getAddress",
    "args": []
  }
  ```
</ResponseField>

<ResponseField name="getDescription" type="String">
  | Argument | Typ | Beschreibung                              |
  | -------- | --- | ----------------------------------------- |
  | —        | —   | Diese Methode akzeptiert keine Argumente. |

  ### getDescription

  ```json theme={null}
  {
    "beanId": "dummyBean",
    "scope": "PROTOTYPE",
    "functionName": "getDescription",
    "args": []
  }
  ```
</ResponseField>

<ResponseField name="setDescription" type="void">
  | Argument      | Typ      | Beschreibung                |
  | ------------- | -------- | --------------------------- |
  | `description` | `String` | Übergeben über `args[0].0`. |

  ### setDescription

  ```json theme={null}
  {
    "beanId": "dummyBean",
    "scope": "PROTOTYPE",
    "functionName": "setDescription",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="getToDos" type="List<Map<String, Object>>">
  | Argument | Typ | Beschreibung                              |
  | -------- | --- | ----------------------------------------- |
  | —        | —   | Diese Methode akzeptiert keine Argumente. |

  ### getToDos

  ```json theme={null}
  {
    "beanId": "dummyBean",
    "scope": "PROTOTYPE",
    "functionName": "getToDos",
    "args": []
  }
  ```
</ResponseField>

<ResponseField name="clear" type="void">
  | Argument | Typ | Beschreibung                              |
  | -------- | --- | ----------------------------------------- |
  | —        | —   | Diese Methode akzeptiert keine Argumente. |

  ### clear

  ```json theme={null}
  {
    "beanId": "dummyBean",
    "scope": "PROTOTYPE",
    "functionName": "clear",
    "args": []
  }
  ```
</ResponseField>

<ResponseField name="addToDo" type="void">
  | Argument | Typ      | Beschreibung                |
  | -------- | -------- | --------------------------- |
  | `name`   | `String` | Übergeben über `args[0].0`. |

  ### addToDo

  ```json theme={null}
  {
    "beanId": "dummyBean",
    "scope": "PROTOTYPE",
    "functionName": "addToDo",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>
