{
  "info": {
    "_postman_id": "7a46d8b7-da62-4e90-b019-f9d239e91616",
    "name": "API Finance",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "_exporter_id": "14421511"
  },
  "item": [
    {
      "name": "Users",
      "item": [
        {
          "name": "List",
          "request": {
            "method": "POST",
            "header": [],
            "body": {
              "mode": "raw",
              "raw": "{\r\n    \"filter\": {\r\n        \"id\": \"\"\r\n    }\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{url_base}}/root/usuarios/listar",
              "host": [
                "{{url_base}}"
              ],
              "path": [
                "root",
                "usuarios",
                "listar"
              ]
            }
          },
          "response": []
        },
        {
          "name": "Create",
          "request": {
            "method": "POST",
            "header": [],
            "body": {
              "mode": "raw",
              "raw": "{\r\n    \"nome\": \"user Teste\",\r\n    \"email\": \"user@teste.com\",\r\n    \"senha\": \"teste\"\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{url_base}}/root/usuarios/criar",
              "host": [
                "{{url_base}}"
              ],
              "path": [
                "root",
                "usuarios",
                "criar"
              ]
            }
          },
          "response": []
        },
        {
          "name": "Update",
          "request": {
            "method": "PUT",
            "header": [],
            "body": {
              "mode": "raw",
              "raw": "{\r\n    \"nome\": \"Matheus F. Souza\"\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{url_base}}/root/usuarios/atualizar/3",
              "host": [
                "{{url_base}}"
              ],
              "path": [
                "root",
                "usuarios",
                "atualizar",
                "3"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Contas",
      "item": [
        {
          "name": "List",
          "request": {
            "method": "POST",
            "header": [],
            "body": {
              "mode": "raw",
              "raw": "{\r\n    \"filter\": {\r\n        \"tipo\": \"D\",\r\n        \"id_usuario\": 1\r\n    },\r\n    \"includes\": {\r\n        \"usuarios\": true\r\n    }\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{url_base}}/private/contas/listar",
              "host": [
                "{{url_base}}"
              ],
              "path": [
                "private",
                "contas",
                "listar"
              ]
            }
          },
          "response": []
        },
        {
          "name": "Create",
          "request": {
            "method": "POST",
            "header": [],
            "body": {
              "mode": "raw",
              "raw": "{\r\n    \"id_usuario\": {{current_user}},\r\n    \"id_categoria\": 10,\r\n    \"titulo\": \"Streams PAULO\",\r\n    \"descricao\": \"\",\r\n    \"valor\": 25,\r\n    \"tipo\": \"R\",\r\n    \"status\": \"PE\",\r\n    \"vencimento\": \"2026-01-05\",\r\n    \"frequencia\": 6\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{url_base}}/private/contas/criar",
              "host": [
                "{{url_base}}"
              ],
              "path": [
                "private",
                "contas",
                "criar"
              ]
            }
          },
          "response": []
        },
        {
          "name": "Update",
          "request": {
            "method": "PUT",
            "header": [],
            "body": {
              "mode": "raw",
              "raw": "{\r\n    \"status\": \"PA\",\r\n    \"valor_pago\": 600,\r\n    \"id_forma_pagamento\": 4\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{url_base}}/private/contas/atualizar/1",
              "host": [
                "{{url_base}}"
              ],
              "path": [
                "private",
                "contas",
                "atualizar",
                "1"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Resumos",
      "item": [
        {
          "name": "Geral",
          "request": {
            "method": "POST",
            "header": [],
            "body": {
              "mode": "raw",
              "raw": "{\r\n    \"inicio\": \"2026-02-01\",\r\n    \"fim\": \"2026-02-28\",\r\n    \"usuario\": 1\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{url_base}}/private/resumos/geral",
              "host": [
                "{{url_base}}"
              ],
              "path": [
                "private",
                "resumos",
                "geral"
              ]
            }
          },
          "response": []
        },
        {
          "name": "Anual",
          "request": {
            "method": "POST",
            "header": [],
            "body": {
              "mode": "raw",
              "raw": "{\r\n    \"ano\": \"2026\",\r\n    \"usuario\": 1\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{url_base}}/private/resumos/anual",
              "host": [
                "{{url_base}}"
              ],
              "path": [
                "private",
                "resumos",
                "anual"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Contas Bancárias",
      "item": [
        {
          "name": "Listar",
          "request": {
            "method": "POST",
            "header": [],
            "body": {
              "mode": "raw",
              "raw": "{\r\n    \"filter\": {\r\n        \"id_user\": {{current_user}}\r\n    }\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{url_base}}/private/contas-bancarias/listar",
              "host": [
                "{{url_base}}"
              ],
              "path": [
                "private",
                "contas-bancarias",
                "listar"
              ]
            }
          },
          "response": []
        },
        {
          "name": "Create",
          "request": {
            "method": "POST",
            "header": [],
            "body": {
              "mode": "raw",
              "raw": "{\r\n    \"descricao\": \"Conta Inter\", \r\n    \"observacoes\": \"Minha conta principal\", \r\n    \"saldo\": 0, \r\n    \"id_user\": {{current_user}}\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{url_base}}/private/contas-bancarias/criar",
              "host": [
                "{{url_base}}"
              ],
              "path": [
                "private",
                "contas-bancarias",
                "criar"
              ]
            }
          },
          "response": []
        },
        {
          "name": "Update",
          "request": {
            "method": "PUT",
            "header": [],
            "body": {
              "mode": "raw",
              "raw": "{\r\n    \"saldo\": 10\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{url_base}}private/contas-bancarias/atualizar/2",
              "host": [
                "{{url_base}}private"
              ],
              "path": [
                "contas-bancarias",
                "atualizar",
                "2"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Categorias",
      "item": [
        {
          "name": "Listar",
          "request": {
            "method": "POST",
            "header": [],
            "body": {
              "mode": "raw",
              "raw": "{\r\n    \"filter\": {\r\n        \"id_usuario\": {{current_user}}\r\n    }\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{url_base}}/private/categorias/listar",
              "host": [
                "{{url_base}}"
              ],
              "path": [
                "private",
                "categorias",
                "listar"
              ]
            }
          },
          "response": []
        },
        {
          "name": "Create",
          "request": {
            "method": "POST",
            "header": [],
            "body": {
              "mode": "raw",
              "raw": "{\r\n    \"id_usuario\": {{current_user}},\r\n    \"descricao\": \"Mesalidade Streams\",\r\n    \"teste\": \"BB\"\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{url_base}}/private/categorias/criar",
              "host": [
                "{{url_base}}"
              ],
              "path": [
                "private",
                "categorias",
                "criar"
              ]
            }
          },
          "response": []
        },
        {
          "name": "Update",
          "request": {
            "method": "PUT",
            "header": [],
            "body": {
              "mode": "raw",
              "raw": "{\r\n    \"descricao\": \"Assinaturas\"\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{url_base}}/private/categorias/atualizar/1",
              "host": [
                "{{url_base}}"
              ],
              "path": [
                "private",
                "categorias",
                "atualizar",
                "1"
              ]
            }
          },
          "response": []
        },
        {
          "name": "New Request",
          "request": {
            "method": "GET",
            "header": []
          },
          "response": []
        }
      ]
    },
    {
      "name": "Login",
      "event": [
        {
          "listen": "test",
          "script": {
            "exec": [
              "pm.collectionVariables.set(\"current_user\", pm.response.json().id);"
            ],
            "type": "text/javascript",
            "packages": {},
            "requests": {}
          }
        }
      ],
      "request": {
        "method": "POST",
        "header": [],
        "body": {
          "mode": "raw",
          "raw": "{\r\n    \"email\": \"{{login}}\",\r\n    \"senha\": \"{{senha}}\"\r\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{url_base}}/login",
          "host": [
            "{{url_base}}"
          ],
          "path": [
            "login"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Payments Forms",
      "event": [
        {
          "listen": "test",
          "script": {
            "exec": [
              ""
            ],
            "type": "text/javascript",
            "packages": {},
            "requests": {}
          }
        }
      ],
      "protocolProfileBehavior": {
        "disableBodyPruning": true
      },
      "request": {
        "method": "GET",
        "header": [],
        "body": {
          "mode": "raw",
          "raw": "",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{url_base}}/payments-forms",
          "host": [
            "{{url_base}}"
          ],
          "path": [
            "payments-forms"
          ]
        }
      },
      "response": []
    }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{token}}",
        "type": "string"
      }
    ]
  },
  "event": [
    {
      "listen": "prerequest",
      "script": {
        "type": "text/javascript",
        "packages": {},
        "requests": {},
        "exec": [
          ""
        ]
      }
    },
    {
      "listen": "test",
      "script": {
        "type": "text/javascript",
        "packages": {},
        "requests": {},
        "exec": [
          ""
        ]
      }
    }
  ],
  "variable": [
    {
      "key": "url_base",
      "value": "http://localhost/finance-api/"
    },
    {
      "key": "current_user",
      "value": "1"
    },
    {
      "key": "login",
      "value": ""
    },
    {
      "key": "senha",
      "value": ""
    },
    {
      "key": "token",
      "value": ""
    }
  ]
}