GET api/dependente

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of dependenteModel
NameDescriptionTypeAdditional information
id

integer

None.

cliente_id

integer

None.

nome

string

None.

celular

string

None.

tipo

string

None.

limite

decimal number

None.

pai

Collection of dependeCartaoModel

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "id": 1,
    "cliente_id": 2,
    "nome": "sample string 3",
    "celular": "sample string 4",
    "tipo": "sample string 5",
    "limite": 6.0,
    "pai": [
      {
        "id": 1,
        "nome": "sample string 2",
        "numero": "sample string 3"
      },
      {
        "id": 1,
        "nome": "sample string 2",
        "numero": "sample string 3"
      }
    ]
  },
  {
    "id": 1,
    "cliente_id": 2,
    "nome": "sample string 3",
    "celular": "sample string 4",
    "tipo": "sample string 5",
    "limite": 6.0,
    "pai": [
      {
        "id": 1,
        "nome": "sample string 2",
        "numero": "sample string 3"
      },
      {
        "id": 1,
        "nome": "sample string 2",
        "numero": "sample string 3"
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfdependenteModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShopperREST.Models">
  <dependenteModel>
    <celular>sample string 4</celular>
    <cliente_id>2</cliente_id>
    <id>1</id>
    <limite>6</limite>
    <nome>sample string 3</nome>
    <pai>
      <dependeCartaoModel>
        <id>1</id>
        <nome>sample string 2</nome>
        <numero>sample string 3</numero>
      </dependeCartaoModel>
      <dependeCartaoModel>
        <id>1</id>
        <nome>sample string 2</nome>
        <numero>sample string 3</numero>
      </dependeCartaoModel>
    </pai>
    <tipo>sample string 5</tipo>
  </dependenteModel>
  <dependenteModel>
    <celular>sample string 4</celular>
    <cliente_id>2</cliente_id>
    <id>1</id>
    <limite>6</limite>
    <nome>sample string 3</nome>
    <pai>
      <dependeCartaoModel>
        <id>1</id>
        <nome>sample string 2</nome>
        <numero>sample string 3</numero>
      </dependeCartaoModel>
      <dependeCartaoModel>
        <id>1</id>
        <nome>sample string 2</nome>
        <numero>sample string 3</numero>
      </dependeCartaoModel>
    </pai>
    <tipo>sample string 5</tipo>
  </dependenteModel>
</ArrayOfdependenteModel>