POST api/Subcontracts/{subcontractId}/CostLists/Versions/{versionId}/Query
Get subcontract cost items
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| subcontractId | integer |
Required |
|
| versionId | integer |
Required |
Body Parameters
CostItemPagedFilter| Name | Description | Type | Additional information |
|---|---|---|---|
| CostListTypeId | integer |
None. |
|
| CostItemTypeId | integer |
None. |
|
| Description | string |
None. |
|
| QuantityFrom | decimal number |
None. |
|
| QuantityTo | decimal number |
None. |
|
| UnitPriceFrom | decimal number |
None. |
|
| UnitPriceTo | decimal number |
None. |
|
| VersionId | integer |
None. |
|
| Page | Page |
None. |
|
| Orders | Collection of Order |
None. |
Request Formats
application/json, text/json
Sample:
{
"costListTypeId": 1,
"costItemTypeId": 1,
"description": "sample string 1",
"quantityFrom": 1.0,
"quantityTo": 1.0,
"unitPriceFrom": 1.0,
"unitPriceTo": 1.0,
"versionId": 1,
"page": {
"number": 1,
"size": 2,
"skip": 0
},
"orders": [
{
"name": "sample string 1",
"descending": true
},
{
"name": "sample string 1",
"descending": true
}
]
}
text/html
Sample:
{"costListTypeId":1,"costItemTypeId":1,"description":"sample string 1","quantityFrom":1.0,"quantityTo":1.0,"unitPriceFrom":1.0,"unitPriceTo":1.0,"versionId":1,"page":{"number":1,"size":2,"skip":0},"orders":[{"name":"sample string 1","descending":true},{"name":"sample string 1","descending":true}]}
application/xml, text/xml
Sample:
<CostItemPagedFilter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.CostListAgg">
<Orders xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.Application.Base.SortAndPage.Entities">
<Order>
<Descending>true</Descending>
<Name>sample string 1</Name>
</Order>
<Order>
<Descending>true</Descending>
<Name>sample string 1</Name>
</Order>
</Orders>
<Page xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.Application.Base.SortAndPage.Entities">
<Number>1</Number>
<Size>2</Size>
</Page>
<CostItemTypeId>1</CostItemTypeId>
<CostListTypeId>1</CostListTypeId>
<Description>sample string 1</Description>
<QuantityFrom>1</QuantityFrom>
<QuantityTo>1</QuantityTo>
<UnitPriceFrom>1</UnitPriceFrom>
<UnitPriceTo>1</UnitPriceTo>
<VersionId>1</VersionId>
</CostItemPagedFilter>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiDataResultOfIPagedListOfCostItemDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | IPagedListOfCostItemDto |
None. |
|
| Success | boolean |
None. |
|
| Message | string |
None. |
|
| Errors | Collection of CustomError |
None. |
|
| Warnings | Collection of string |
None. |
Response Formats
application/json, text/json, text/html
Sample:
Sample not available.