POST api/Supplements/Subcontracts/{subcontractId}/LastVersion
Obtiene el listado de suplementos de un subcontrato con su ultima version
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| subcontractId | integer |
Required |
Body Parameters
SupplementFilter| Name | Description | Type | Additional information |
|---|---|---|---|
| SubcontractId | integer |
None. |
|
| type | SuplementTypeId |
None. |
|
| ExternalCode | integer |
None. |
|
| InternalCode | string |
None. |
|
| Name | string |
None. |
|
| Description | string |
None. |
|
| Page | Page |
None. |
|
| SortedColumns | Collection of Order |
None. |
Request Formats
application/json, text/json
Sample:
{
"subcontractId": 1,
"type": 1,
"externalCode": 1,
"internalCode": "sample string 1",
"name": "sample string 2",
"description": "sample string 3",
"page": {
"number": 1,
"size": 2,
"skip": 0
},
"sortedColumns": [
{
"name": "sample string 1",
"descending": true
},
{
"name": "sample string 1",
"descending": true
}
]
}
text/html
Sample:
{"subcontractId":1,"type":1,"externalCode":1,"internalCode":"sample string 1","name":"sample string 2","description":"sample string 3","page":{"number":1,"size":2,"skip":0},"sortedColumns":[{"name":"sample string 1","descending":true},{"name":"sample string 1","descending":true}]}
application/xml, text/xml
Sample:
<SupplementFilter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.SuplementAgg">
<Page xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.Application.Base.SortAndPage.Entities">
<Number>1</Number>
<Size>2</Size>
</Page>
<SortedColumns 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>
</SortedColumns>
<Description>sample string 3</Description>
<ExternalCode>1</ExternalCode>
<InternalCode>sample string 1</InternalCode>
<Name>sample string 2</Name>
<SubcontractId>1</SubcontractId>
<type>Internal</type>
</SupplementFilter>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiDataResultOfIEnumerableOfSupplementDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | Collection of SupplementDto |
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.