> ## 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.

# BlogCategoryServiceImpl

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

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

  blogCategoryServiceImpl
</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="getRepository" type="BlogCategoryRepository">
  | Argument | Typ | Beschreibung                              |
  | -------- | --- | ----------------------------------------- |
  | —        | —   | Diese Methode akzeptiert keine Argumente. |

  ### getRepository

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

<ResponseField name="searchCategories" type="List<BlogCategory>">
  | Argument | Typ      | Beschreibung                |
  | -------- | -------- | --------------------------- |
  | `query`  | `String` | Übergeben über `args[0].0`. |
  | `from`   | `String` | Übergeben über `args[1].1`. |
  | `to`     | `String` | Übergeben über `args[2].2`. |

  ### searchCategories

  ```json theme={null}
  {
    "beanId": "blogCategoryServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "searchCategories",
    "args": [
      {
        "0": null,
        "1": null,
        "2": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="createCategory" type="Optional<BlogCategory>">
  | Argument        | Typ                             | Beschreibung                |
  | --------------- | ------------------------------- | --------------------------- |
  | `categoryAsMap` | `LinkedHashMap<String, Object>` | Übergeben über `args[0].0`. |

  ### createCategory

  Beispiel für das JSON-Anfrageobjekt:

  ```json theme={null}
  {
      "id":  null,
      "name":  null,
      "parentId":  null,
      "description":  null,
      "active":  false,
      "keywords":  null,
      "searchTerms":  null,
      "translations":  null,
      "containers":  null,
      "children":  null,
      "imageURLs":  null
  }
  ```

  Request:

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

<ResponseField name="addChildCategory" type="BlogCategory">
  | Argument   | Typ      | Beschreibung                |
  | ---------- | -------- | --------------------------- |
  | `parentId` | `String` | Übergeben über `args[0].0`. |
  | `childId`  | `String` | Übergeben über `args[1].1`. |

  ### addChildCategory

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

<ResponseField name="updateCategory" type="BlogCategory">
  | Argument        | Typ                             | Beschreibung                |
  | --------------- | ------------------------------- | --------------------------- |
  | `categoryAsMap` | `LinkedHashMap<String, Object>` | Übergeben über `args[0].0`. |

  ### updateCategory

  Beispiel für das JSON-Anfrageobjekt:

  ```json theme={null}
  {
      "id":  null,
      "name":  null,
      "parentId":  null,
      "description":  null,
      "active":  false,
      "keywords":  null,
      "searchTerms":  null,
      "translations":  null,
      "containers":  null,
      "children":  null,
      "imageURLs":  null
  }
  ```

  Request:

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

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

  ### removeCategoryFromTranslation

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

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

  ### removeCategoryWithDescendants

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

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

  ### removeContainerFromBlogCategory

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

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

  ### removeCategoriesByIds

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