LocalizationControllerPostImportLibraries - метод

Import list of localization libraries. Method is available for administrators only.

Definition

Пространство имён: Tessa.Web.Controllers
Сборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
C#
[HttpPostAttribute("import")]
[DisableRequestSizeLimitAttribute]
[TypedJsonBodyAttribute]
[SessionMethodAttribute(UserAccessLevel.Administrator)]
[ConsumesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(204)]
public Task<IActionResult> PostImportLibraries(
	[FromBodyAttribute] List<PlainLocalizationLibrary> libraries,
	[FromQueryAttribute] bool clear = false,
	CancellationToken cancellationToken = default
)

Параметры

libraries  ListPlainLocalizationLibrary
List of localization libraries.
clear  Boolean  (Optional)
Flag whether to delete all libraries prior to importing.
cancellationToken  CancellationToken  (Optional)
Token to cancel async task.

Возвращаемое значение

TaskIActionResult
204 (No Content).

См. также