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

# MarketingServiceImpl

> Вызов публичных методов сервиса через REST API: marketingServiceImpl

<ResponseField name="beanId" type="string">
  Идентификатор Spring bean, который содержит вызываемый сервис.

  marketingServiceImpl
</ResponseField>

<ResponseField name="scope" type="string" default="PROTOTYPE">
  Область действия bean. Для вызовов сервисов используется PROTOTYPE.
</ResponseField>

<ResponseField name="functionName" type="string">
  Имя публичного метода сервиса, указанное в сигнатуре ниже.
</ResponseField>

<ResponseField name="args" type="object[]">
  Массив аргументов метода. Каждый аргумент передаётся объектом с индексом 0, 1 и т. д.; значение должно соответствовать Java-типу параметра.
</ResponseField>

## Headers

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

Заголовки `Lang-Context` и `Site-Context` необходимо передавать в каждом запросе. Для защищённых методов передавайте JWT в заголовке `Authorization` в формате `Bearer <token>`.

**Доступ:** GUEST\* / USER или ADMIN. **Bearer Token:** условно для USER/ADMIN.

* GUEST — без логина; доступен только whitelist.
* USER — требуется авторизация; доступны методы с проверкой USER.
* ADMIN — полный доступ к public-методам всех сервисов.
* Если метод проверяет роль внутри логики, GUEST может получить null.

## Методы

<ResponseField name="searchUserAnalytics" type="LinkedHashSet<UserAuditSettings>">
  | Аргумент      | Тип      | Описание                      |
  | ------------- | -------- | ----------------------------- |
  | `requestJson` | `String` | Передаётся через `args[0].0`. |

  ### searchUserAnalytics

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

<ResponseField name="searchUserAnalyticsPaged" type="Page<UserAuditSettings>">
  | Аргумент      | Тип      | Описание                      |
  | ------------- | -------- | ----------------------------- |
  | `requestJson` | `String` | Передаётся через `args[0].0`. |

  ### searchUserAnalyticsPaged

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

<ResponseField name="getPaginationAnalyticsData" type="Deque<Map<String, Object>>">
  | Аргумент      | Тип      | Описание                      |
  | ------------- | -------- | ----------------------------- |
  | `requestJson` | `String` | Передаётся через `args[0].0`. |

  ### getPaginationAnalyticsData

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

<ResponseField name="generateDashlyHash" type="String">
  | Аргумент | Тип | Описание                      |
  | -------- | --- | ----------------------------- |
  | —        | —   | Метод не принимает аргументы. |

  ### generateDashlyHash

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

<ResponseField name="getSeoMetaData" type="Map<String,Object>">
  | Аргумент         | Тип      | Описание                      |
  | ---------------- | -------- | ----------------------------- |
  | `seoUrl`         | `String` | Передаётся через `args[0].0`. |
  | `repositoryName` | `String` | Передаётся через `args[1].1`. |

  ### getSeoMetaData

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

<ResponseField name="getSeoUrl" type="String">
  | Аргумент         | Тип      | Описание                      |
  | ---------------- | -------- | ----------------------------- |
  | `id`             | `String` | Передаётся через `args[0].0`. |
  | `repositoryName` | `String` | Передаётся через `args[1].1`. |

  ### getSeoUrl

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

<ResponseField name="getSeoUrlAsValue" type="Map<String, Object>">
  | Аргумент         | Тип      | Описание                      |
  | ---------------- | -------- | ----------------------------- |
  | `id`             | `String` | Передаётся через `args[0].0`. |
  | `repositoryName` | `String` | Передаётся через `args[1].1`. |

  ### getSeoUrlAsValue

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

<ResponseField name="getSeoUrlByLang" type="String">
  | Аргумент         | Тип      | Описание                      |
  | ---------------- | -------- | ----------------------------- |
  | `id`             | `String` | Передаётся через `args[0].0`. |
  | `lang`           | `String` | Передаётся через `args[1].1`. |
  | `repositoryName` | `String` | Передаётся через `args[2].2`. |

  ### getSeoUrlByLang

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

<ResponseField name="saveSearchRequest" type="boolean">
  | Аргумент     | Тип      | Описание                      |
  | ------------ | -------- | ----------------------------- |
  | `searchTerm` | `String` | Передаётся через `args[0].0`. |

  ### saveSearchRequest

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