LocalizationControllerGetLibrary - метод
Get localization library by specified identifier. Returns 204 (No Content), if library isn't found.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
[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
(* Defaults:
let _returnComments = defaultArg returnComments false
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult<PlainLocalizationLibrary>>
- 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.
TaskActionResultPlainLocalizationLibraryLocalization library or 204 (No Content), if library isn't found.