LocalizationControllerGetLibrary - метод

Get localization library by specified identifier. Returns 204 (No Content), if library isn't found.

Definition

Пространство имён: Tessa.Web.Controllers
Сборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
C#
[HttpGetAttribute("{id:guid}")]
[SessionMethodAttribute(UserAccessLevel.Regular)]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
[ProducesResponseTypeAttribute(204)]
public Task<ActionResult<PlainLocalizationLibrary>> GetLibrary(
	[FromRouteAttribute] Guid id,
	[FromQueryAttribute(Name = "comments")] bool returnComments = false,
	CancellationToken cancellationToken = default
)

Параметры

id  Guid
Library identifier.
returnComments  Boolean  (Optional)
Flag whether entries will be returned with comments for each entry. They are useful for localization editor. If false, when localization strings of specified language are returned, but not the comments.
cancellationToken  CancellationToken  (Optional)
Token to cancel async task.

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

TaskActionResultPlainLocalizationLibrary
Localization library or 204 (No Content), if library isn't found.

См. также