LocalizationV1ControllerGetEntries - метод
Get localization entries of specified language for all localization libraries.
Method acknowledges overriding of localization strings with same names in different libraries.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
[HttpGetAttribute("entries")]
[SessionMethodAttribute(UserAccessLevel.Regular)]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult<List<PlainLocalizationEntry>>> GetEntries(
[FromQueryAttribute] int culture,
[FromQueryAttribute(Name = "comments")] bool returnComments = false,
CancellationToken cancellationToken = default
)
<HttpGetAttribute("entries")>
<SessionMethodAttribute(UserAccessLevel.Regular)>
<ProducesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function GetEntries (
<FromQueryAttribute> culture As Integer,
<FromQueryAttribute(Name := "comments")> Optional returnComments As Boolean = false,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult(Of List(Of PlainLocalizationEntry)))
public:
[HttpGetAttribute(L"entries")]
[SessionMethodAttribute(UserAccessLevel::Regular)]
[ProducesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<ActionResult<List<PlainLocalizationEntry^>^>^>^ GetEntries(
[FromQueryAttribute] int culture,
[FromQueryAttribute(Name = L"comments")] bool returnComments = false,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpGetAttribute("entries")>]
[<SessionMethodAttribute(UserAccessLevel.Regular)>]
[<ProducesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member GetEntries :
[<FromQueryAttribute>] culture : int *
[<FromQueryAttribute(Name = "comments")>] ?returnComments : bool *
?cancellationToken : CancellationToken
(* Defaults:
let _returnComments = defaultArg returnComments false
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult<List<PlainLocalizationEntry>>>
- culture Int32
-
Localization language of returned entries. For example 9 for English, 25 for Russian, etc.
- 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.
TaskActionResultListPlainLocalizationEntryLocalization entries of specified language for all localization libraries.