POST api/Section/GetSectionsPaged
Método para obtener secciones con paginado. Usado en el maestro de secciones
Request Information
URI Parameters
None.
Body Parameters
{"itemsFilter":{"ItemsFilterFields":{"Id":"","IdAyto":"","Ayto":"","Name":"","NickName":"","Rol":0,"Surname":"","Telephone":"","NIF":"","Email":"","IdCronos":0,"StatusActive":1},"SortDescription":{"Direction":1,"PropertyName":"Id"}},"itemsPaged":{"ListItems":[],"IndexPage":0,"NumItems":0,"PageSize":15,"NumResponse":0,"NumTotal":0,"ListCustomer":null},"countItems":true} }}
Collection of ObjectNone.
Request Formats
application/json, text/json, application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
SectionPaged| Name | Description | Type | Additional information |
|---|---|---|---|
| ListItems | Collection of Secciones |
None. |
|
| IndexPage | integer |
None. |
|
| NumItems | integer |
None. |
|
| PageSize | integer |
None. |
|
| NumResponse | integer |
None. |
|
| NumTotal | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"ListItems": [
{
"$id": "2",
"ColorFondo": "sample string 1",
"ColorLetras": "sample string 2",
"IsSelected": true,
"Delegacion": "sample string 4",
"IdDelegacion": "sample string 5",
"IdCompanySection": 6,
"CodigoEmpresa": 7,
"CodigoSeccion": "sample string 8",
"Seccion": "sample string 9",
"IdSeccionGuid": "1be6a244-e502-4090-b291-930feda40633",
"SectionColor": [
{
"$id": "3",
"CodigoSeccion": "sample string 1",
"ColorFondo": "sample string 2",
"ColorLetras": "sample string 3",
"Usuario": 4,
"CodigoEmpresa": 5,
"Secciones": {
"$ref": "2"
}
},
{
"$ref": "3"
}
]
},
{
"$ref": "2"
}
],
"IndexPage": 1,
"NumItems": 2,
"PageSize": 3,
"NumResponse": 1,
"NumTotal": 4
}
application/xml, text/xml
Sample:
<SectionPaged xmlns:i="http://www.w3.org/2001/XMLSchema-instance" z:Id="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" xmlns="http://schemas.datacontract.org/2004/07/Idesa.GestionCelebraciones.Domain.Entity.Dto.Section">
<IndexPage>1</IndexPage>
<ListItems xmlns:d2p1="http://schemas.datacontract.org/2004/07/Idesa.GestionCelebraciones.Domain.Entity">
<d2p1:Secciones z:Id="i2">
<d2p1:CodigoEmpresa>7</d2p1:CodigoEmpresa>
<d2p1:CodigoSeccion>sample string 8</d2p1:CodigoSeccion>
<d2p1:ColorFondo>sample string 1</d2p1:ColorFondo>
<d2p1:ColorLetras>sample string 2</d2p1:ColorLetras>
<d2p1:Delegacion>sample string 4</d2p1:Delegacion>
<d2p1:IdCompanySection>6</d2p1:IdCompanySection>
<d2p1:IdDelegacion>sample string 5</d2p1:IdDelegacion>
<d2p1:IdSeccionGuid>1be6a244-e502-4090-b291-930feda40633</d2p1:IdSeccionGuid>
<d2p1:IsSelected>true</d2p1:IsSelected>
<d2p1:Seccion>sample string 9</d2p1:Seccion>
<d2p1:SectionColor>
<d2p1:SectionColor z:Id="i3">
<d2p1:CodigoEmpresa>5</d2p1:CodigoEmpresa>
<d2p1:CodigoSeccion>sample string 1</d2p1:CodigoSeccion>
<d2p1:ColorFondo>sample string 2</d2p1:ColorFondo>
<d2p1:ColorLetras>sample string 3</d2p1:ColorLetras>
<d2p1:Secciones z:Ref="i2" />
<d2p1:Usuario>4</d2p1:Usuario>
</d2p1:SectionColor>
<d2p1:SectionColor z:Ref="i3" />
</d2p1:SectionColor>
</d2p1:Secciones>
<d2p1:Secciones z:Ref="i2" />
</ListItems>
<NumItems>2</NumItems>
<NumResponse>1</NumResponse>
<NumTotal>4</NumTotal>
<PageSize>3</PageSize>
</SectionPaged>