-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexpenses.example.http
56 lines (46 loc) · 1.01 KB
/
expenses.example.http
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
54
55
56
### Request 1
GET http://localhost:8080/api/v1/expenses
### Post Expense
POST http://localhost:8080/api/v1/expenses
content-type: application/json
{
"id": 8,
"userId": 2,
"name": "Celular da Nokia",
"state": "A",
"type": "E"
}
### Show Expense By Id
GET http://localhost:8080/api/v1/expenses/8
### Delete expense
DELETE http://localhost:8080/api/v1/expenses/1
### Post Categories
POST http://localhost:8080/api/v1/categories
content-type: application/json
{
"id": 1,
"userId": 2,
"name": "Google Play",
"state": "A",
"type": "E"
}
### Put Edit Expense
PUT http://localhost:8080/api/v1/expenses/1
Content-Type: application/json
{
"id": 1,
"userId": 2,
"categoryId": 4,
"description": "Fone de ouvido",
"value": 444.99,
"isFixed": false,
"dueDate": "2021-06-20",
"expenseType": "A",
"expenseState": "E"
}
### Get expense categories
GET http://localhost:8080/api/v1/categories
### Request 2
[GET|POST] [REST API URL]
[Request Headers]
[Request Body]