-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApis.http
46 lines (28 loc) · 756 Bytes
/
Apis.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
@host = http://localhost:5406
### Request token
# @prompt userid Custom id or empty for a random id
GET http://localhost:54062/v1/tokens?userid={{userid}}
### Register debit
# @prompt token Bearer token
POST {{host}}/debit
Content-Type: application/json
Authorization: Bearer {{token}}
{
"registrationDate": "2024-09-05T12:27:13.000Z",
"value": "100.99"
}
### Register credit
# @prompt token Bearer token
POST {{host}}/credit
Content-Type: application/json
Authorization: Bearer {{token}}
{
"registrationDate": "2024-09-05T13:47:34.000Z",
"value": "99.99"
}
### Get day's balance
# @prompt token Bearer token
# @prompt day 0000-00-00
GET {{host}}/balance?day={{day}}
Content-Type: application/json
Authorization: Bearer {{token}}