-
Notifications
You must be signed in to change notification settings - Fork 0
/
requests.http
54 lines (42 loc) · 1008 Bytes
/
requests.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
@service_host=http://localhost:8080
@bff_host=http://localhost:8085
## Métricas
GET {{service_host}}/actuator/prometheus
## Obter token
POST {{service_host}}/api/auth/token
Content-Type: application/json
{
"clientId": "bff",
"clientSecret": "averylongandsecureclientsecret"
}
## Exemplo de request atutenticado
GET {{service_host}}/api/v1/rates
Authorization: Bearer ...
GET {{service_host}}/api/v1/loans/6
POST {{service_host}}/api/v1/loans
Content-Type: application/json
{
"name": "Loan CP",
"description": "Teste Post Example",
"value": 100.5,
"installmentsNumber": 5,
"startDate": "2024-01-10T00:00:00",
"rate": {
"id": 1
}
}
## Exemplos BFF
GET {{bff_host}}/api/rates
GET {{bff_host}}/api/loans
GET {{bff_host}}/api/loans/6
POST {{bff_host}}/api/loans
{
"name": "Loan CPl",
"description": "Teste Post Example",
"value": 100.5,
"installmentsNumber": 5,
"startDate": "2024-01-10T00:00:00",
"rate": {
"id": 1
}
}