POST api/Tasks/SearchCount
Кол-во задач с учетом строки поиска
Request Information
URI Parameters
None.
Body Parameters
Модель поиска задач
TaskSearchModel| Name | Description | Type | Additional information |
|---|---|---|---|
| SearchString |
Строка поиска |
string |
None. |
| Page |
Номер страницы |
integer |
None. |
| Size |
Размер страницы |
integer |
None. |
| Sorting |
Тип сортировки |
TaskSortField |
None. |
| Descending |
Направление сортировки (false - asc, true - desc) |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"SearchString": "sample string 1",
"Page": 2,
"Size": 3,
"Sorting": 0,
"Descending": true
}
text/html, multipart/form-data
Sample:
{"SearchString":"sample string 1","Page":2,"Size":3,"Sorting":0,"Descending":true}
application/xml, text/xml
Sample:
<TaskSearchModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.Requests"> <Descending>true</Descending> <Page>2</Page> <SearchString>sample string 1</SearchString> <Size>3</Size> <Sorting>Id</Sorting> </TaskSearchModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Success Resource Description
Список задач
integerError Resource Description (Реализовано не везде)
OperationResultResponse Formats
application/json, text/json, text/html, multipart/form-data
Sample:
1
application/xml, text/xml
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>
