GET api/Materia?IdCliente={IdCliente}&Prefix={Prefix}&Count={Count}&Page={Page}&IdMaterias={IdMaterias}
Permite realizar la búsqueda de materias en el sistema. Este método requiere autorización.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| IdCliente |
Identificador interno del cliente. |
integer |
Required |
| Prefix |
Texto a coincidir con el nombre de la materia. (like '%@prefix%'). |
string |
Max length: 603 |
| Count |
Capacidad de registros a obtener (Recomendado 20). |
integer |
Range: inclusive between 0 and 100 |
| Page |
N° de página de registros a obtener (Default 1). |
integer |
None. |
| IdMaterias |
Id de materias entre los cuales buscar separados por coma. (Ej: 1,2,3,4). |
string |
None. |
Body Parameters
None.
Response Information
Resource Description
Retorna una colección de [Materia] con los registros encontrados con su HttpStatusCode correspondiente (OK:200) o retorna un [string] con su HttpStatusCode correspondiente (BadRequest:400).
Collection of Materia| Name | Description | Type | Additional information |
|---|---|---|---|
| IdCliente |
Identificador interno del cliente. |
integer |
None. |
| IdMateria |
Identificador interno de la materia. |
integer |
None. |
| Nombre |
Nombre de la Materia. |
string |
None. |
| IdTipoCobro |
Identificador de Tipo de Cobro por defecto. |
integer |
None. |
| Idioma |
Lenguaje en el que debe ser ingresada la descripción. (Ing: Inglés, Esp: Español). |
string |
None. |
| IdEstado |
Identificador de estado de la materia cliente (1: Activo, 2: Inactivo, 3: Bloqueado). |
integer |
None. |
| RequiereEjecutivo |
Indica que la materia utiliza la selección de Ejecutivo. |
boolean |
None. |
| RequiereLedes |
Indica que la materia utiliza ledes (Se debe seleccionar Actividad y Tarea). |
boolean |
None. |
Response Formats
application/json, text/json
[
{
"IdCliente": 1,
"IdMateria": 2,
"Nombre": "sample string 3",
"IdTipoCobro": 4,
"Idioma": "sample string 5",
"IdEstado": 6,
"RequiereEjecutivo": true,
"RequiereLedes": true
},
{
"IdCliente": 1,
"IdMateria": 2,
"Nombre": "sample string 3",
"IdTipoCobro": 4,
"Idioma": "sample string 5",
"IdEstado": 6,
"RequiereEjecutivo": true,
"RequiereLedes": true
}
]
application/xml, text/xml
<ArrayOfMateria xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tecnolex.Tempus.API.Models">
<Materia>
<IdCliente>1</IdCliente>
<IdEstado>6</IdEstado>
<IdMateria>2</IdMateria>
<IdTipoCobro>4</IdTipoCobro>
<Idioma>sample string 5</Idioma>
<Nombre>sample string 3</Nombre>
<RequiereEjecutivo>true</RequiereEjecutivo>
<RequiereLedes>true</RequiereLedes>
</Materia>
<Materia>
<IdCliente>1</IdCliente>
<IdEstado>6</IdEstado>
<IdMateria>2</IdMateria>
<IdTipoCobro>4</IdTipoCobro>
<Idioma>sample string 5</Idioma>
<Nombre>sample string 3</Nombre>
<RequiereEjecutivo>true</RequiereEjecutivo>
<RequiereLedes>true</RequiereLedes>
</Materia>
</ArrayOfMateria>