GET api/PuntosServicio/{idpais}/{idciudad}/{idproducto}/{abiertos}/{pagina}/{resultadosXpagina}

Método que retorna la información de todos los puntos de servicio filtrados por ciudad, producto y que estén abiertos o disponibles deacuerdo al día y la hora actual. Se accede al método a través de una petición HTTP (GET) a api/PuntosServicio/{idpais}/{idciudad}/{idproducto}/{abiertos}/{pagina}/{resultadosXpagina}. Es decir, para acceder a todos los puntos de servicio de Bogota sin importar los productos y el horario, se debe hacer el llamado a api/PuntoServicio/1/10/0/0/0/20 donde el primer 1 hace referencia al id del país, el 10 es el id de la ciudad de bogotá, los dos ceros siguientes inidican que tanto el producto como el horario de atención no se tienen en cuenta para realizar el filtro, el cero (0) hace referencia a la primera página de respuesta y finalmente, el 20 es el número de puntos de servicio por página.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
idpais

Id del país.

integer

Required

idciudad

Id de la ciudad donde se desea consultar los puntos de servicio.

integer

Required

idproducto

Id del producto. 0 para omitir este filtro.

integer

Required

abiertos

1 para filtrar por puntos de servicio abiertos en la hora actual. 0 para omitir este filtro.

integer

Required

pagina

número de página de resultados

integer

Required

resultadosXpagina

número de resultados por página

integer

Required

Body Parameters

None.

Response Information

Resource Description

CustomPaginateResultOfPuntoServicio
NameDescriptionTypeAdditional information
CurrentPage

integer

None.

PageSize

integer

None.

TotalRows

integer

None.

TotalPages

integer

None.

Results

Collection of PuntoServicio

None.

Response Formats

application/json, text/json

Sample:
{
  "CurrentPage": 1,
  "PageSize": 2,
  "TotalRows": 3,
  "TotalPages": 4,
  "Results": [
    {
      "ID_PAIS": 1,
      "ID_CIUDAD": 2,
      "ID_DIVISION": 3,
      "NOMBRE": "sample string 4",
      "DIRECCION": "sample string 5",
      "LONGITUDE": 6.0,
      "LATITUDE": 7.0,
      "TELEFONOS": [
        {
          "ID_TIPO_TELEFONO": 64,
          "NOMBRE_TIPO_TELE": "sample string 2",
          "NUMERO_TELE_DIVISION": "sample string 3",
          "DETALLE_TELE_DIVISION": "sample string 4"
        },
        {
          "ID_TIPO_TELEFONO": 64,
          "NOMBRE_TIPO_TELE": "sample string 2",
          "NUMERO_TELE_DIVISION": "sample string 3",
          "DETALLE_TELE_DIVISION": "sample string 4"
        }
      ],
      "HORARIOS": [
        {
          "DIA_SEMANA": "sample string 1",
          "HORA_INICIAL_AM": "sample string 2",
          "HORA_FINAL_AM": "sample string 3",
          "HORA_INICIAL_PM": "sample string 4",
          "HORA_FINAL_PM": "sample string 5"
        },
        {
          "DIA_SEMANA": "sample string 1",
          "HORA_INICIAL_AM": "sample string 2",
          "HORA_FINAL_AM": "sample string 3",
          "HORA_INICIAL_PM": "sample string 4",
          "HORA_FINAL_PM": "sample string 5"
        }
      ],
      "ID_PARQUEADERO": 64,
      "TIEMPOS_ENTREGA": [
        {
          "ID_TIEMPO": 64,
          "NOMBRE_TIEMPO": "sample string 2"
        },
        {
          "ID_TIEMPO": 64,
          "NOMBRE_TIEMPO": "sample string 2"
        }
      ],
      "PRODUCTOS": [
        {
          "ID_PRODUCTO": 1,
          "NOMBRE_PRODUCTO": "sample string 2"
        },
        {
          "ID_PRODUCTO": 1,
          "NOMBRE_PRODUCTO": "sample string 2"
        }
      ]
    },
    {
      "ID_PAIS": 1,
      "ID_CIUDAD": 2,
      "ID_DIVISION": 3,
      "NOMBRE": "sample string 4",
      "DIRECCION": "sample string 5",
      "LONGITUDE": 6.0,
      "LATITUDE": 7.0,
      "TELEFONOS": [
        {
          "ID_TIPO_TELEFONO": 64,
          "NOMBRE_TIPO_TELE": "sample string 2",
          "NUMERO_TELE_DIVISION": "sample string 3",
          "DETALLE_TELE_DIVISION": "sample string 4"
        },
        {
          "ID_TIPO_TELEFONO": 64,
          "NOMBRE_TIPO_TELE": "sample string 2",
          "NUMERO_TELE_DIVISION": "sample string 3",
          "DETALLE_TELE_DIVISION": "sample string 4"
        }
      ],
      "HORARIOS": [
        {
          "DIA_SEMANA": "sample string 1",
          "HORA_INICIAL_AM": "sample string 2",
          "HORA_FINAL_AM": "sample string 3",
          "HORA_INICIAL_PM": "sample string 4",
          "HORA_FINAL_PM": "sample string 5"
        },
        {
          "DIA_SEMANA": "sample string 1",
          "HORA_INICIAL_AM": "sample string 2",
          "HORA_FINAL_AM": "sample string 3",
          "HORA_INICIAL_PM": "sample string 4",
          "HORA_FINAL_PM": "sample string 5"
        }
      ],
      "ID_PARQUEADERO": 64,
      "TIEMPOS_ENTREGA": [
        {
          "ID_TIEMPO": 64,
          "NOMBRE_TIEMPO": "sample string 2"
        },
        {
          "ID_TIEMPO": 64,
          "NOMBRE_TIEMPO": "sample string 2"
        }
      ],
      "PRODUCTOS": [
        {
          "ID_PRODUCTO": 1,
          "NOMBRE_PRODUCTO": "sample string 2"
        },
        {
          "ID_PRODUCTO": 1,
          "NOMBRE_PRODUCTO": "sample string 2"
        }
      ]
    }
  ]
}

text/html

Sample:
{"CurrentPage":1,"PageSize":2,"TotalRows":3,"TotalPages":4,"Results":[{"ID_PAIS":1,"ID_CIUDAD":2,"ID_DIVISION":3,"NOMBRE":"sample string 4","DIRECCION":"sample string 5","LONGITUDE":6.0,"LATITUDE":7.0,"TELEFONOS":[{"ID_TIPO_TELEFONO":64,"NOMBRE_TIPO_TELE":"sample string 2","NUMERO_TELE_DIVISION":"sample string 3","DETALLE_TELE_DIVISION":"sample string 4"},{"ID_TIPO_TELEFONO":64,"NOMBRE_TIPO_TELE":"sample string 2","NUMERO_TELE_DIVISION":"sample string 3","DETALLE_TELE_DIVISION":"sample string 4"}],"HORARIOS":[{"DIA_SEMANA":"sample string 1","HORA_INICIAL_AM":"sample string 2","HORA_FINAL_AM":"sample string 3","HORA_INICIAL_PM":"sample string 4","HORA_FINAL_PM":"sample string 5"},{"DIA_SEMANA":"sample string 1","HORA_INICIAL_AM":"sample string 2","HORA_FINAL_AM":"sample string 3","HORA_INICIAL_PM":"sample string 4","HORA_FINAL_PM":"sample string 5"}],"ID_PARQUEADERO":64,"TIEMPOS_ENTREGA":[{"ID_TIEMPO":64,"NOMBRE_TIEMPO":"sample string 2"},{"ID_TIEMPO":64,"NOMBRE_TIEMPO":"sample string 2"}],"PRODUCTOS":[{"ID_PRODUCTO":1,"NOMBRE_PRODUCTO":"sample string 2"},{"ID_PRODUCTO":1,"NOMBRE_PRODUCTO":"sample string 2"}]},{"ID_PAIS":1,"ID_CIUDAD":2,"ID_DIVISION":3,"NOMBRE":"sample string 4","DIRECCION":"sample string 5","LONGITUDE":6.0,"LATITUDE":7.0,"TELEFONOS":[{"ID_TIPO_TELEFONO":64,"NOMBRE_TIPO_TELE":"sample string 2","NUMERO_TELE_DIVISION":"sample string 3","DETALLE_TELE_DIVISION":"sample string 4"},{"ID_TIPO_TELEFONO":64,"NOMBRE_TIPO_TELE":"sample string 2","NUMERO_TELE_DIVISION":"sample string 3","DETALLE_TELE_DIVISION":"sample string 4"}],"HORARIOS":[{"DIA_SEMANA":"sample string 1","HORA_INICIAL_AM":"sample string 2","HORA_FINAL_AM":"sample string 3","HORA_INICIAL_PM":"sample string 4","HORA_FINAL_PM":"sample string 5"},{"DIA_SEMANA":"sample string 1","HORA_INICIAL_AM":"sample string 2","HORA_FINAL_AM":"sample string 3","HORA_INICIAL_PM":"sample string 4","HORA_FINAL_PM":"sample string 5"}],"ID_PARQUEADERO":64,"TIEMPOS_ENTREGA":[{"ID_TIEMPO":64,"NOMBRE_TIEMPO":"sample string 2"},{"ID_TIEMPO":64,"NOMBRE_TIEMPO":"sample string 2"}],"PRODUCTOS":[{"ID_PRODUCTO":1,"NOMBRE_PRODUCTO":"sample string 2"},{"ID_PRODUCTO":1,"NOMBRE_PRODUCTO":"sample string 2"}]}]}

application/xml, text/xml

Sample:
<CustomPaginateResultOfPuntoServiciojgJke3Dh xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CDSFiltered.Models.Extentions">
  <CurrentPage>1</CurrentPage>
  <PageSize>2</PageSize>
  <Results xmlns:d2p1="http://schemas.datacontract.org/2004/07/CDSFiltered.Models">
    <d2p1:PuntoServicio>
      <d2p1:DIRECCION>sample string 5</d2p1:DIRECCION>
      <d2p1:HORARIOS>
        <d2p1:HorariosAtencion>
          <d2p1:DIA_SEMANA>sample string 1</d2p1:DIA_SEMANA>
          <d2p1:HORA_FINAL_AM>sample string 3</d2p1:HORA_FINAL_AM>
          <d2p1:HORA_FINAL_PM>sample string 5</d2p1:HORA_FINAL_PM>
          <d2p1:HORA_INICIAL_AM>sample string 2</d2p1:HORA_INICIAL_AM>
          <d2p1:HORA_INICIAL_PM>sample string 4</d2p1:HORA_INICIAL_PM>
        </d2p1:HorariosAtencion>
        <d2p1:HorariosAtencion>
          <d2p1:DIA_SEMANA>sample string 1</d2p1:DIA_SEMANA>
          <d2p1:HORA_FINAL_AM>sample string 3</d2p1:HORA_FINAL_AM>
          <d2p1:HORA_FINAL_PM>sample string 5</d2p1:HORA_FINAL_PM>
          <d2p1:HORA_INICIAL_AM>sample string 2</d2p1:HORA_INICIAL_AM>
          <d2p1:HORA_INICIAL_PM>sample string 4</d2p1:HORA_INICIAL_PM>
        </d2p1:HorariosAtencion>
      </d2p1:HORARIOS>
      <d2p1:ID_CIUDAD>2</d2p1:ID_CIUDAD>
      <d2p1:ID_DIVISION>3</d2p1:ID_DIVISION>
      <d2p1:ID_PAIS>1</d2p1:ID_PAIS>
      <d2p1:ID_PARQUEADERO>64</d2p1:ID_PARQUEADERO>
      <d2p1:LATITUDE>7</d2p1:LATITUDE>
      <d2p1:LONGITUDE>6</d2p1:LONGITUDE>
      <d2p1:NOMBRE>sample string 4</d2p1:NOMBRE>
      <d2p1:PRODUCTOS>
        <d2p1:Producto>
          <d2p1:ID_PRODUCTO>1</d2p1:ID_PRODUCTO>
          <d2p1:NOMBRE_PRODUCTO>sample string 2</d2p1:NOMBRE_PRODUCTO>
        </d2p1:Producto>
        <d2p1:Producto>
          <d2p1:ID_PRODUCTO>1</d2p1:ID_PRODUCTO>
          <d2p1:NOMBRE_PRODUCTO>sample string 2</d2p1:NOMBRE_PRODUCTO>
        </d2p1:Producto>
      </d2p1:PRODUCTOS>
      <d2p1:TELEFONOS>
        <d2p1:TelefonosPtoServicio>
          <d2p1:DETALLE_TELE_DIVISION>sample string 4</d2p1:DETALLE_TELE_DIVISION>
          <d2p1:ID_TIPO_TELEFONO>64</d2p1:ID_TIPO_TELEFONO>
          <d2p1:NOMBRE_TIPO_TELE>sample string 2</d2p1:NOMBRE_TIPO_TELE>
          <d2p1:NUMERO_TELE_DIVISION>sample string 3</d2p1:NUMERO_TELE_DIVISION>
        </d2p1:TelefonosPtoServicio>
        <d2p1:TelefonosPtoServicio>
          <d2p1:DETALLE_TELE_DIVISION>sample string 4</d2p1:DETALLE_TELE_DIVISION>
          <d2p1:ID_TIPO_TELEFONO>64</d2p1:ID_TIPO_TELEFONO>
          <d2p1:NOMBRE_TIPO_TELE>sample string 2</d2p1:NOMBRE_TIPO_TELE>
          <d2p1:NUMERO_TELE_DIVISION>sample string 3</d2p1:NUMERO_TELE_DIVISION>
        </d2p1:TelefonosPtoServicio>
      </d2p1:TELEFONOS>
      <d2p1:TIEMPOS_ENTREGA>
        <d2p1:TiempoEntrega>
          <d2p1:ID_TIEMPO>64</d2p1:ID_TIEMPO>
          <d2p1:NOMBRE_TIEMPO>sample string 2</d2p1:NOMBRE_TIEMPO>
        </d2p1:TiempoEntrega>
        <d2p1:TiempoEntrega>
          <d2p1:ID_TIEMPO>64</d2p1:ID_TIEMPO>
          <d2p1:NOMBRE_TIEMPO>sample string 2</d2p1:NOMBRE_TIEMPO>
        </d2p1:TiempoEntrega>
      </d2p1:TIEMPOS_ENTREGA>
    </d2p1:PuntoServicio>
    <d2p1:PuntoServicio>
      <d2p1:DIRECCION>sample string 5</d2p1:DIRECCION>
      <d2p1:HORARIOS>
        <d2p1:HorariosAtencion>
          <d2p1:DIA_SEMANA>sample string 1</d2p1:DIA_SEMANA>
          <d2p1:HORA_FINAL_AM>sample string 3</d2p1:HORA_FINAL_AM>
          <d2p1:HORA_FINAL_PM>sample string 5</d2p1:HORA_FINAL_PM>
          <d2p1:HORA_INICIAL_AM>sample string 2</d2p1:HORA_INICIAL_AM>
          <d2p1:HORA_INICIAL_PM>sample string 4</d2p1:HORA_INICIAL_PM>
        </d2p1:HorariosAtencion>
        <d2p1:HorariosAtencion>
          <d2p1:DIA_SEMANA>sample string 1</d2p1:DIA_SEMANA>
          <d2p1:HORA_FINAL_AM>sample string 3</d2p1:HORA_FINAL_AM>
          <d2p1:HORA_FINAL_PM>sample string 5</d2p1:HORA_FINAL_PM>
          <d2p1:HORA_INICIAL_AM>sample string 2</d2p1:HORA_INICIAL_AM>
          <d2p1:HORA_INICIAL_PM>sample string 4</d2p1:HORA_INICIAL_PM>
        </d2p1:HorariosAtencion>
      </d2p1:HORARIOS>
      <d2p1:ID_CIUDAD>2</d2p1:ID_CIUDAD>
      <d2p1:ID_DIVISION>3</d2p1:ID_DIVISION>
      <d2p1:ID_PAIS>1</d2p1:ID_PAIS>
      <d2p1:ID_PARQUEADERO>64</d2p1:ID_PARQUEADERO>
      <d2p1:LATITUDE>7</d2p1:LATITUDE>
      <d2p1:LONGITUDE>6</d2p1:LONGITUDE>
      <d2p1:NOMBRE>sample string 4</d2p1:NOMBRE>
      <d2p1:PRODUCTOS>
        <d2p1:Producto>
          <d2p1:ID_PRODUCTO>1</d2p1:ID_PRODUCTO>
          <d2p1:NOMBRE_PRODUCTO>sample string 2</d2p1:NOMBRE_PRODUCTO>
        </d2p1:Producto>
        <d2p1:Producto>
          <d2p1:ID_PRODUCTO>1</d2p1:ID_PRODUCTO>
          <d2p1:NOMBRE_PRODUCTO>sample string 2</d2p1:NOMBRE_PRODUCTO>
        </d2p1:Producto>
      </d2p1:PRODUCTOS>
      <d2p1:TELEFONOS>
        <d2p1:TelefonosPtoServicio>
          <d2p1:DETALLE_TELE_DIVISION>sample string 4</d2p1:DETALLE_TELE_DIVISION>
          <d2p1:ID_TIPO_TELEFONO>64</d2p1:ID_TIPO_TELEFONO>
          <d2p1:NOMBRE_TIPO_TELE>sample string 2</d2p1:NOMBRE_TIPO_TELE>
          <d2p1:NUMERO_TELE_DIVISION>sample string 3</d2p1:NUMERO_TELE_DIVISION>
        </d2p1:TelefonosPtoServicio>
        <d2p1:TelefonosPtoServicio>
          <d2p1:DETALLE_TELE_DIVISION>sample string 4</d2p1:DETALLE_TELE_DIVISION>
          <d2p1:ID_TIPO_TELEFONO>64</d2p1:ID_TIPO_TELEFONO>
          <d2p1:NOMBRE_TIPO_TELE>sample string 2</d2p1:NOMBRE_TIPO_TELE>
          <d2p1:NUMERO_TELE_DIVISION>sample string 3</d2p1:NUMERO_TELE_DIVISION>
        </d2p1:TelefonosPtoServicio>
      </d2p1:TELEFONOS>
      <d2p1:TIEMPOS_ENTREGA>
        <d2p1:TiempoEntrega>
          <d2p1:ID_TIEMPO>64</d2p1:ID_TIEMPO>
          <d2p1:NOMBRE_TIEMPO>sample string 2</d2p1:NOMBRE_TIEMPO>
        </d2p1:TiempoEntrega>
        <d2p1:TiempoEntrega>
          <d2p1:ID_TIEMPO>64</d2p1:ID_TIEMPO>
          <d2p1:NOMBRE_TIEMPO>sample string 2</d2p1:NOMBRE_TIEMPO>
        </d2p1:TiempoEntrega>
      </d2p1:TIEMPOS_ENTREGA>
    </d2p1:PuntoServicio>
  </Results>
  <TotalPages>4</TotalPages>
  <TotalRows>3</TotalRows>
</CustomPaginateResultOfPuntoServiciojgJke3Dh>