OperationsControllerGetAll - метод
Get attributes of all operations of specified type. List can be empty, if there are no operations with the type.
Method is available for administrators only.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
[HttpGetAttribute("get-all")]
[SessionMethodAttribute(UserAccessLevel.Administrator)]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult<List<Operation>>> GetAll(
[FromQueryAttribute(Name = "type")] Guid typeID,
[FromQueryAttribute(Name = "full")] bool loadEverything = false,
CancellationToken cancellationToken = default
)
<HttpGetAttribute("get-all")>
<SessionMethodAttribute(UserAccessLevel.Administrator)>
<ProducesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function GetAll (
<FromQueryAttribute(Name := "type")> typeID As Guid,
<FromQueryAttribute(Name := "full")> Optional loadEverything As Boolean = false,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult(Of List(Of Operation)))
public:
[HttpGetAttribute(L"get-all")]
[SessionMethodAttribute(UserAccessLevel::Administrator)]
[ProducesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<ActionResult<List<Operation^>^>^>^ GetAll(
[FromQueryAttribute(Name = L"type")] Guid typeID,
[FromQueryAttribute(Name = L"full")] bool loadEverything = false,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpGetAttribute("get-all")>]
[<SessionMethodAttribute(UserAccessLevel.Administrator)>]
[<ProducesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member GetAll :
[<FromQueryAttribute(Name = "type")>] typeID : Guid *
[<FromQueryAttribute(Name = "full")>] ?loadEverything : bool *
?cancellationToken : CancellationToken
(* Defaults:
let _loadEverything = defaultArg loadEverything false
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult<List<Operation>>>
- typeID Guid
-
Type identifier of operations to get.
System types are listed in OperationTypes class.
- loadEverything Boolean (Optional)
-
Flag whether all operation attributes should be returned, including properties
Request,
RequestHash
and Response.
- cancellationToken CancellationToken (Optional)
- Token to cancel async task.
TaskActionResultListOperationAttributes of all operations of specified type.