{
  "info": {
    "_postman_id": "78e6f184-98a1-4af1-a217-communy-client-api",
    "name": "Communy API Clientes",
    "description": "Collection para testar os endpoints da API Communy para clientes. Todos os endpoints usam Authorization: Bearer {{token}} e suportam paginacao por page e limit.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{token}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "base_url",
      "value": "https://communy.com.br",
      "type": "string"
    },
    {
      "key": "token",
      "value": "",
      "type": "string"
    },
    {
      "key": "condominium_hash",
      "value": "",
      "type": "string"
    },
    {
      "key": "unit_hash",
      "value": "",
      "type": "string"
    },
    {
      "key": "page",
      "value": "1",
      "type": "string"
    },
    {
      "key": "limit",
      "value": "100",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "Listar unidades do condominio",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json",
            "type": "text"
          }
        ],
        "url": {
          "raw": "{{base_url}}/api/v1/condominiums/units/{{condominium_hash}}/?page={{page}}&limit={{limit}}",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api",
            "v1",
            "condominiums",
            "units",
            "{{condominium_hash}}",
            ""
          ],
          "query": [
            {
              "key": "page",
              "value": "{{page}}"
            },
            {
              "key": "limit",
              "value": "{{limit}}"
            }
          ]
        },
        "description": "Lista as unidades de um condominio usando o condominium_hash do condominio."
      },
      "response": []
    },
    {
      "name": "Listar condominos da unidade",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json",
            "type": "text"
          }
        ],
        "url": {
          "raw": "{{base_url}}/api/v1/condominiums/units/residents/{{unit_hash}}/?page={{page}}&limit={{limit}}",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api",
            "v1",
            "condominiums",
            "units",
            "residents",
            "{{unit_hash}}",
            ""
          ],
          "query": [
            {
              "key": "page",
              "value": "{{page}}"
            },
            {
              "key": "limit",
              "value": "{{limit}}"
            }
          ]
        },
        "description": "Lista os condominos de uma unidade usando o unit_hash da unidade."
      },
      "response": []
    },
    {
      "name": "Listar veiculos da unidade",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json",
            "type": "text"
          }
        ],
        "url": {
          "raw": "{{base_url}}/api/v1/condominiums/units/vehicles/{{unit_hash}}/?page={{page}}&limit={{limit}}",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api",
            "v1",
            "condominiums",
            "units",
            "vehicles",
            "{{unit_hash}}",
            ""
          ],
          "query": [
            {
              "key": "page",
              "value": "{{page}}"
            },
            {
              "key": "limit",
              "value": "{{limit}}"
            }
          ]
        },
        "description": "Lista os veiculos de uma unidade usando o unit_hash da unidade."
      },
      "response": []
    },
    {
      "name": "Listar dados adicionais da unidade",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json",
            "type": "text"
          }
        ],
        "url": {
          "raw": "{{base_url}}/api/v1/condominiums/units/additionaldata/{{unit_hash}}/?page={{page}}&limit={{limit}}",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api",
            "v1",
            "condominiums",
            "units",
            "additionaldata",
            "{{unit_hash}}",
            ""
          ],
          "query": [
            {
              "key": "page",
              "value": "{{page}}"
            },
            {
              "key": "limit",
              "value": "{{limit}}"
            }
          ]
        },
        "description": "Lista os dados adicionais de uma unidade usando o unit_hash da unidade."
      },
      "response": []
    }
  ]
}
