POST api/Requests/SearchCount
Кол-во заявок с учетом строки поиска
Request Information
URI Parameters
None.
Body Parameters
Модель поиска заявок
RequestSearchModel| Name | Description | Type | Additional information |
|---|---|---|---|
| SearchString |
Строка поиска |
string |
None. |
| Page |
Номер страницы |
integer |
None. |
| Size |
Размер страницы |
integer |
None. |
| Sorting |
Тип сортировки |
RequestSortField |
None. |
| Descending |
Направление сортировки (false - asc, true - desc) |
boolean |
None. |
| DoNotSearchInArchive |
Не искать в архивных записях |
boolean |
Элемент не будет учитываться, если значение = null |
Request Formats
application/json, text/json
Sample:
{
"SearchString": "sample string 1",
"Page": 2,
"Size": 3,
"Sorting": 0,
"Descending": true,
"DoNotSearchInArchive": true
}
text/html, multipart/form-data
Sample:
{"SearchString":"sample string 1","Page":2,"Size":3,"Sorting":0,"Descending":true,"DoNotSearchInArchive":true}
application/xml, text/xml
Sample:
<RequestSearchModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.Requests"> <Descending>true</Descending> <DoNotSearchInArchive>true</DoNotSearchInArchive> <Page>2</Page> <SearchString>sample string 1</SearchString> <Size>3</Size> <Sorting>Id</Sorting> </RequestSearchModel>
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>
