-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi-examples.http
More file actions
53 lines (43 loc) · 1.02 KB
/
Copy pathapi-examples.http
File metadata and controls
53 lines (43 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
### List all records
GET http://localhost:8080/api/lancamentos
### Get record by ID
GET http://localhost:8080/api/lancamentos/1
### Create income
POST http://localhost:8080/api/lancamentos
Content-Type: application/json
{
"descricao": "Salario",
"categoria": "Trabalho",
"tipo": "RECEITA",
"valor": 1200.00,
"data": "2026-07-10",
"pago": true
}
### Create expense
POST http://localhost:8080/api/lancamentos
Content-Type: application/json
{
"descricao": "Internet",
"categoria": "Casa",
"tipo": "DESPESA",
"valor": 35.90,
"data": "2026-07-12",
"pago": false
}
### Update record
PUT http://localhost:8080/api/lancamentos/1
Content-Type: application/json
{
"descricao": "Salario atualizado",
"categoria": "Trabalho",
"tipo": "RECEITA",
"valor": 1250.00,
"data": "2026-07-10",
"pago": true
}
### Toggle paid status
PATCH http://localhost:8080/api/lancamentos/1/pago
### Delete record
DELETE http://localhost:8080/api/lancamentos/1
### Financial summary
GET http://localhost:8080/api/lancamentos/resumo