LocalizationController.GetLibrary - метод
Возвращает библиотеку локализации по указанному идентификатору. Возвращается 204 (No Content), если библиотека не найдена.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 3.6.0.23
[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
)
<HttpGetAttribute("{id:guid}")>
<SessionMethodAttribute(UserAccessLevel.Regular)>
<ProducesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
<ProducesResponseTypeAttribute(204)>
Public Function GetLibrary (
<FromRouteAttribute> id As Guid,
<FromQueryAttribute(Name := "comments")> Optional returnComments As Boolean = false,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult(Of PlainLocalizationLibrary))
public:
[HttpGetAttribute(L"{id:guid}")]
[SessionMethodAttribute(UserAccessLevel::Regular)]
[ProducesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
[ProducesResponseTypeAttribute(204)]
Task<ActionResult<PlainLocalizationLibrary^>^>^ GetLibrary(
[FromRouteAttribute] Guid id,
[FromQueryAttribute(Name = L"comments")] bool returnComments = false,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpGetAttribute("{id:guid}")>]
[<SessionMethodAttribute(UserAccessLevel.Regular)>]
[<ProducesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
[<ProducesResponseTypeAttribute(204)>]
member GetLibrary :
[<FromRouteAttribute>] id : Guid *
[<FromQueryAttribute(Name = "comments")>] ?returnComments : bool *
?cancellationToken : CancellationToken
-> Task<ActionResult<PlainLocalizationLibrary>>
- id Guid
- Идентификатор возвращаемой библиотеки.
- returnComments Boolean (Optional)
-
Признак того, что должны возвращаться комментарии к строкам локализации. Если указано false, то возвращаются только сами строки
и их перевод на доступные языки, но не комментарии, полезные при редактировании локализации в TessaAdmin.
- cancellationToken CancellationToken (Optional)
- Объект, посредством которого можно отменить асинхронную задачу.
Task<ActionResult<PlainLocalizationLibrary>>Библиотека локализации или 204 (No Content), если библиотека не найдена.